public void Initialize()
 {
     if (!Bootstarpper.IsInitizlied)
     {
         Bootstarpper.Intialize(ShellVM.Instance);
     }
 }
示例#2
0
        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));
        }
示例#3
0
 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);
 }