Esempio n. 1
0
        public static void ConfigureDependencies(IServiceCollection services, IConfiguration configuration, string connectionString)
        {
            services.AddHttpContextAccessor();

            services.AddScoped <ICurrentContextProvider, CurrentContextProvider>();

            services.AddSingleton <JwtManager>();

            ContainerExtension.Initialize(services, configuration, connectionString);

            services.AddTransient <IAuthenticationService, AuthenticationService <User> >();
        }
Esempio n. 2
0
 public static void ConfigureDependencies(IServiceCollection services, string connectionString)
 {
     ContainerExtension.Initialize(services, connectionString);
 }
Esempio n. 3
0
        public static void ConfigureDependencies(IServiceCollection services, IConfiguration configuration, string connectionString = null)
        {
            services.AddHttpContextAccessor();

            ContainerExtension.Initialize(services, configuration, connectionString);
        }