示例#1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            CorsConfig.Add(ref services, Configuration);
            APIControllersConfig.Add(ref services, Configuration);
            EntityFrameworkConfig.Add(ref services, Configuration);
            AuthenticationConfig.Add(ref services, Configuration);
            var mapper = AutoMapperConfig.Add(ref services, Configuration);

            APIVersioningConfig.Add(ref services, Configuration);
            SwaggerConfig.Add(ref services, Configuration);
            DependencyInjectionConfig.Add(ref services, Configuration, ref mapper);
            HealthChecksConfig.Add(ref services, Configuration);
            SignalRConfig.Add(ref services, Configuration);
        }