public void Initialize() { if (!Bootstarpper.IsInitizlied) { Bootstarpper.Intialize(ShellVM.Instance); } }
protected override IMvxIoCProvider CreateIocProvider() { Dictionary <Type, Type> mappedtypes = new Dictionary <Type, Type>(); mappedtypes.Add(typeof(PlatformService_Android), typeof(IPlatformService)); Bootstarpper bootstarpper = new Bootstarpper(); var container = bootstarpper.Build(mappedtypes); return(new AutofacMvxIocProvider(container)); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); GlobalFilters.Filters.Add(new UserProfileActionFilter()); Bootstarpper.Run(); JobScheduler.Start(); }
public void Should_Thorw_InvalidOperationExecption_On_ReInitalization_Try() { Bootstarpper.Intialize(ShellVM.Instance); }