fix(#I12XTD): 增加 JsonStringEnumConverter 转换器
#Issue link #I12XTD
This commit is contained in:
parent
71482a79d8
commit
a0aba4b293
|
@ -57,7 +57,7 @@ namespace Bootstrap.Admin
|
|||
services.AddDbAdapter();
|
||||
services.AddIPLocator(DictHelper.ConfigIPLocator);
|
||||
services.AddOnlineUsers();
|
||||
services.AddSignalR().AddJsonProtocol(op => op.PayloadSerializerOptions.Configure());
|
||||
services.AddSignalR().AddJsonProtocol(op => op.PayloadSerializerOptions.AddDefaultConverters());
|
||||
services.AddSignalRExceptionFilterHandler<SignalRHub>(async (client, ex) => await client.SendMessageBody(ex).ConfigureAwait(false));
|
||||
services.AddResponseCompression();
|
||||
services.AddBootstrapAdminAuthentication().AddGitee(OAuthHelper.Configure).AddGitHub(OAuthHelper.Configure);
|
||||
|
@ -71,7 +71,7 @@ namespace Bootstrap.Admin
|
|||
{
|
||||
options.Filters.Add<ExceptionFilter>();
|
||||
options.Filters.Add<SignalRExceptionFilter<SignalRHub>>();
|
||||
}).AddJsonOptions(op => op.JsonSerializerOptions.Configure());
|
||||
}).AddJsonOptions(op => op.JsonSerializerOptions.AddDefaultConverters());
|
||||
services.AddApiVersioning(option =>
|
||||
{
|
||||
option.DefaultApiVersion = new ApiVersion(1, 0);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Bootstrap.Security.DataAccess" Version="2.2.21" />
|
||||
<PackageReference Include="Longbow" Version="3.0.0-beta3" />
|
||||
<PackageReference Include="Longbow" Version="3.0.0-beta4" />
|
||||
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
|
||||
<PackageReference Include="Longbow.Data" Version="2.3.8" />
|
||||
<PackageReference Include="Longbow.GiteeAuth" Version="2.2.0" />
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Bootstrap.Security.DataAccess" Version="2.2.21" />
|
||||
<PackageReference Include="Longbow" Version="3.0.0-beta3" />
|
||||
<PackageReference Include="Longbow" Version="3.0.0-beta4" />
|
||||
<PackageReference Include="Longbow.Cache" Version="2.2.15" />
|
||||
<PackageReference Include="Longbow.Configuration" Version="2.2.7" />
|
||||
<PackageReference Include="Longbow.Data" Version="2.3.8" />
|
||||
|
|
|
@ -60,7 +60,7 @@ namespace Bootstrap.Client
|
|||
{
|
||||
options.Filters.Add<ExceptionFilter>();
|
||||
options.Filters.Add<SignalRExceptionFilter<SignalRHub>>();
|
||||
}).AddJsonOptions(op => op.JsonSerializerOptions.Configure());
|
||||
}).AddJsonOptions(op => op.JsonSerializerOptions.AddDefaultConverters());
|
||||
}
|
||||
|
||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||
|
|
Loading…
Reference in New Issue