コード例 #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();

            DatabaseConfiguration.RegisterServices(services, Configuration);
            RepositoryDependencyResolver.RegisterServices(services);
        }
コード例 #2
0
        public static void RegisterServices(IServiceCollection services)
        {
            services.AddSingleton <IHttpContextAccessor, HttpContextAccessor>();

            DomainDependencyResolver.RegisterServices(services);
            RepositoryDependencyResolver.RegisterServices(services);
        }
コード例 #3
0
 public static void RegisterServices(IServiceCollection services)
 {
     CommonDependencyResolver.RegisterServices(services);
     RepositoryDependencyResolver.RegisterServices(services);
 }