This commit is contained in:
2026-05-18 00:56:30 +03:30
parent af84871d10
commit 6fb2c8e912
3 changed files with 275 additions and 1075 deletions
+2 -6
View File
@@ -65,7 +65,7 @@ namespace xPushService.DI
public static void AddXPushService( public static void AddXPushService(
this IServiceCollection services, this IServiceCollection services,
IConfiguration config, IConfiguration config,
ServiceLifetime lifeTime = ServiceLifetime.Singleton ServiceLifetime lifeTime = ServiceLifetime.Scoped
) )
{ {
// //
@@ -84,7 +84,7 @@ namespace xPushService.DI
public static void AddXPushService( public static void AddXPushService(
this IServiceCollection services, this IServiceCollection services,
XPushServiceConfiguration config, XPushServiceConfiguration config,
ServiceLifetime lifeTime = ServiceLifetime.Singleton ServiceLifetime lifeTime = ServiceLifetime.Scoped
) )
{ {
// //
@@ -279,10 +279,6 @@ namespace xPushService.DI
x.PayloadSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); x.PayloadSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
}); });
//
// Register HubContext Factory ...
services.AddSingleton<IXHubContextFactory, XHubContextFactory>();
// //
// Register XPushServiceUserNameProvider ... // Register XPushServiceUserNameProvider ...
services.AddSingleton<IUserIdProvider, XPushServiceUserNameProvider>(); services.AddSingleton<IUserIdProvider, XPushServiceUserNameProvider>();
+272 -1069
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -30,6 +30,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\xModels\xModels.csproj" /> <ProjectReference Include="..\xModels\xModels.csproj" />
<ProjectReference Include="..\xCommons\xCommons.csproj" /> <ProjectReference Include="..\xCommons\xCommons.csproj" />
<ProjectReference Include="..\xDataService\xDataService.csproj" />
<ProjectReference Include="..\xIdentityService\xIdentityService.csproj" /> <ProjectReference Include="..\xIdentityService\xIdentityService.csproj" />
</ItemGroup> </ItemGroup>