protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); IocConfiguration.Configure(); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); IocConfiguration.Configure(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// 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); }
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); }
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()); }