|
|
@ -7,6 +7,7 @@ using Connected.Net.Endpoints;
|
|
|
|
using Connected.Net.Server;
|
|
|
|
using Connected.Net.Server;
|
|
|
|
using Connected.Security.Identity;
|
|
|
|
using Connected.Security.Identity;
|
|
|
|
using Connected.ServiceModel;
|
|
|
|
using Connected.ServiceModel;
|
|
|
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
|
|
[assembly: MicroService(MicroServiceType.Service)]
|
|
|
|
[assembly: MicroService(MicroServiceType.Service)]
|
|
|
@ -21,8 +22,7 @@ internal class CommonStartup : Startup
|
|
|
|
services.AddScoped(typeof(IIdentityService), typeof(IdentityService));
|
|
|
|
services.AddScoped(typeof(IIdentityService), typeof(IdentityService));
|
|
|
|
services.AddTransient(typeof(IDocumentLocker<,>), typeof(DocumentLocker<,>));
|
|
|
|
services.AddTransient(typeof(IDocumentLocker<,>), typeof(DocumentLocker<,>));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override async Task OnInitialize(IConfiguration config)
|
|
|
|
protected override async Task OnInitialize(Dictionary<string, string> args)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (Services is null || Services.GetService<IContextProvider>() is not IContextProvider provider)
|
|
|
|
if (Services is null || Services.GetService<IContextProvider>() is not IContextProvider provider)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|