Example #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public async void ConfigureServices(IServiceCollection services)
        {
            // Add framework services.
            services.AddMvc();
            services.AddDbContext <SwLogDbContext>(options =>
                                                   options.UseSqlServer(Configuration.GetConnectionString("LogConnection")));

            await InicializarWebApp.Inicializar("WebAppTH");
        }
Example #2
0
 // This method gets called by the runtime. Use this method to add services to the container.
 public async void ConfigureServices(IServiceCollection services)
 {
     // Add framework services.
     services.AddMvc();
     await InicializarWebApp.Inicializar("WebAppTH");
 }