예제 #1
0
 // This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     BootStrap.Configure(services, Configuration.GetConnectionString("DefaultConnection"));
     services.AddMvc(x => {
         x.Filters.Add(typeof(CustomExceptionFilter));
     });
 }
예제 #2
0
        static void Main()
        {
            BootStrap.Configure();
            IControllerFactory lContFactory = BootStrap.GetControllerFactory();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new ModoAdministrador(lContFactory));
            Application.Run(new Player());
        }