File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Cnblogs.Architecture.Ddd.Cqrs.AspNetCore
test/Cnblogs.Architecture.IntegrationTestProject Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public static CqrsInjector UseCustomCommandErrorResponseMapper(
4848 /// </summary>
4949 /// <param name="injector"></param>
5050 /// <returns></returns>
51- public static CqrsInjector UseLongToStringJsonConverter ( this CqrsInjector injector )
51+ public static CqrsInjector AddLongToStringJsonConverter ( this CqrsInjector injector )
5252 {
5353 injector . Services . Configure < CqrsHttpOptions > (
5454 o => o . DefaultJsonSerializerOptions . Converters . Add ( new LongToStringConverter ( ) ) ) ;
Original file line number Diff line number Diff line change 1212var builder = WebApplication . CreateBuilder ( args ) ;
1313
1414builder . Services . AddCqrs ( Assembly . GetExecutingAssembly ( ) , typeof ( TestIntegrationEvent ) . Assembly )
15- . UseLongToStringJsonConverter ( )
15+ . AddLongToStringJsonConverter ( )
1616 . AddDefaultDateTimeAndRandomProvider ( )
1717 . AddEventBus ( o => o . UseDapr ( Constants . AppName ) ) ;
1818builder . Services . AddControllers ( ) . AddCqrsModelBinderProvider ( ) . AddLongToStringJsonConverter ( ) ;
You can’t perform that action at this time.
0 commit comments