Example #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            //** Configuration **//
            //var storage = new StorageConfiguration();
            //services.ConfigurePOCO(Configuration.GetSection("Storage"), storage);

            ////services.ConfigurePOCO<HttpServiceAccount>(Configuration.GetSection("HttpServiceAccount"), ()=>new HttpServiceAccount());

            //var appConfig = new AppConfiguration();
            //services.ConfigurePOCO<AppConfiguration>(Configuration, appConfig);
            services.AddControllers();
            services.AddControllersWithViews();
            ApplicationServices.AddApplicationServices(services, Configuration);
        }