예제 #1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddCors();

            services.AddSingleton <IFacilityGeneratorApi, FacilityGeneratorApi>();
            services.AddSingleton <ServiceHttpHandlerSettings>();
            services.AddSingleton <FacilityGeneratorApiHttpHandler>();

            services.AddMvc()
            .AddJsonOptions(options => ServiceJsonUtility.ApplyJsonSerializerSettings(options.SerializerSettings));
        }