Beispiel #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            EntityToDbTypeMappingConfiguration.InitConfig();

            services.TryAddSingleton(Configuration);
            services.TryAddScoped <IDbProvider, DbProvider>();
            services.TryAddScoped <IUsersRepository, UsersRepository>();
            services.TryAddScoped <IPopugTaskRepository, PopugTaskRepository>();
            services.TryAddScoped <IPopugTaskAdministrationService, PopugTaskAdministrationService>();
            services.TryAddScoped <ITaskBusinessEventsStream, TaskBusinessEventsStream>();

            services.TryAddScopedAuthServices();
            services.AddHostedAuthService();

            services.AddControllers();
        }
Beispiel #2
0
 // This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     EntityToDbTypeMappingConfiguration.InitConfig();
     services.AddControllers();
 }