// 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); }
public static void RegisterServices(IServiceCollection services) { services.AddSingleton <IHttpContextAccessor, HttpContextAccessor>(); DomainDependencyResolver.RegisterServices(services); RepositoryDependencyResolver.RegisterServices(services); }
public static void RegisterServices(IServiceCollection services) { CommonDependencyResolver.RegisterServices(services); RepositoryDependencyResolver.RegisterServices(services); }