last ...
This commit is contained in:
@@ -65,7 +65,7 @@ namespace xPushService.DI
|
||||
public static void AddXPushService(
|
||||
this IServiceCollection services,
|
||||
IConfiguration config,
|
||||
ServiceLifetime lifeTime = ServiceLifetime.Singleton
|
||||
ServiceLifetime lifeTime = ServiceLifetime.Scoped
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -84,7 +84,7 @@ namespace xPushService.DI
|
||||
public static void AddXPushService(
|
||||
this IServiceCollection services,
|
||||
XPushServiceConfiguration config,
|
||||
ServiceLifetime lifeTime = ServiceLifetime.Singleton
|
||||
ServiceLifetime lifeTime = ServiceLifetime.Scoped
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -279,10 +279,6 @@ namespace xPushService.DI
|
||||
x.PayloadSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
|
||||
});
|
||||
|
||||
//
|
||||
// Register HubContext Factory ...
|
||||
services.AddSingleton<IXHubContextFactory, XHubContextFactory>();
|
||||
|
||||
//
|
||||
// Register XPushServiceUserNameProvider ...
|
||||
services.AddSingleton<IUserIdProvider, XPushServiceUserNameProvider>();
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\xModels\xModels.csproj" />
|
||||
<ProjectReference Include="..\xCommons\xCommons.csproj" />
|
||||
<ProjectReference Include="..\xDataService\xDataService.csproj" />
|
||||
<ProjectReference Include="..\xIdentityService\xIdentityService.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user