Exemple #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     IocConfiguration.Configure();
 }
Exemple #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            IocConfiguration.Configure();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Exemple #3
0
 // This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
     ConfigureVersioningAndSwagger(services);
     ConfigureJsonServices(services);
     ConfigureLogging(services);
     ConfigureOtherServices(services);
     ConfigureDb(services);
     IocConfiguration.Configure(services);
 }
Exemple #4
0
        protected void Application_Start()
        {
            //Para utilizar IOC (Inversion Of Control) y DI (Dependency Injection) con Autofac
            IocConfiguration.Configure();

            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
Exemple #5
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource = Resource.Layout.Toolbar;

            IocConfiguration.Configure();

            base.OnCreate(bundle);
            Forms.Init(this, bundle);

            LoadApplication(new App());
        }