last ...
This commit is contained in:
@@ -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>();
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user