Esempio n. 1
0
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddApplicationInsightsTelemetry(Configuration);
            services.AddHaufwerk("Dorothy", "https://haufwerk.sachsenhofer.com");
            services.AddMvc();

            var config = new Configuration(Configuration);
            services.AddSingleton(x => config);
            services.AddSingleton(x => CreateAutoMapperMappings());

            services.AddDbContext<Db>(options =>
                {
                    options.UseSqlServer(config.ConnectionString);
                });
        }
Esempio n. 2
0
 public HomeController(Configuration config)
 {
     _config = config;
 }