public MainWindow()
        {
            InitializeComponent();

            AppBootstrapper = new AppBootstrapper();
            DataContext     = AppBootstrapper;
        }
Example #2
0
        /// <summary>Initializes a new instance of the <see cref="MainWindow" /> class.</summary>
        public MainWindow()
        {
            InitializeComponent();

            AppBootstrapper              = new AppBootstrapper();
            DataContext                  = AppBootstrapper;
            WindowLayoutViewModel        = Locator.Current.GetService <IWindowLayoutViewModel>();
            WindowLayoutViewModel.Window = this;

            this.WhenActivated(
                d =>
            {
                d(CommonInteractions.CheckToProceed.RegisterHandler(
                      async interaction =>
                {
                    MessageDialogResult shouldContinue =
                        await
                        this.ShowMessageAsync(
                            "Please confirm",
                            interaction.Input,
                            MessageDialogStyle.AffirmativeAndNegative).ConfigureAwait(false);

                    interaction.SetOutput(shouldContinue == MessageDialogResult.Affirmative);
                }));

                d(CommonInteractions.GetStringResponse.RegisterHandler(
                      async interaction =>
                {
                    string input = await this.ShowInputAsync("Please confirm", interaction.Input).ConfigureAwait(false);
                    interaction.SetOutput(input);
                }));

                d(this.WhenAnyValue(x => x.AppBootstrapper).BindTo(this, x => x.DataContext));
            });
        }
Example #3
0
        public AlerterTests()
        {
            var serviceProvider = AppBootstrapper.Bootstrap(Directory.GetCurrentDirectory() + "../../../../../ExcelAlerter");

            alerter  = serviceProvider.GetService <IAlerter>();
            settings = serviceProvider.GetService <IOptionsMonitor <AppSettings> >().CurrentValue;
        }
Example #4
0
        public App()
        {
            InitializeComponent();

            var bootstrapper = new AppBootstrapper();
            bootstrapper.Initialize();
        }
Example #5
0
        public MainWindow()
        {
            InitializeComponent();

            AppBootstrapper = new AppBootstrapper();
            DataContext     = AppBootstrapper;

            UpdateDwmBorder();

            taskbarIcon = new TaskbarIcon();

            MessageBus.Current.Listen <bool>("IsPlaying").Subscribe(x => {
                taskbarIcon.IconSource = x ?
                                         new BitmapImage(new Uri("pack://application:,,,/Play;component/Images/status-icon-on.ico")) :
                                         new BitmapImage(new Uri("pack://application:,,,/Play;component/Images/status-icon-off.ico"));

                taskbarIcon.Visibility = Visibility.Visible;
            });

            taskbarIcon.LeftClickCommand = ReactiveCommand.Create(_ => true, _ => {
                if (WindowState == WindowState.Minimized)
                {
                    WindowState = WindowState.Normal;
                }

                Show();
            });
        }
Example #6
0
        public App()
        {
            var viewModel = new AppBootstrapper();

            viewModel.Init();
            MainPage = viewModel.CreateMainPage();
        }
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            ViewModel = new AppBootstrapper();

            // XXX: ReactiveUI Bug
            viewHost.Router = (RoutingState)ViewModel.Router;
        }
Example #8
0
 public void Start()
 {
     _Log.Info("WebServer is starting...");
     try
     {
         // TODO Build optional SSL support with certificates
         SuaveHttp.Protocol protocol = SuaveHttp.Protocol.HTTP;
         FSharpList <SuaveHttp.HttpBinding> bindings = ListModule.OfSeq(_ListenAddresses.Select(ep => new SuaveHttp.HttpBinding(protocol, new Suave.Sockets.SocketBinding(ep.Address, (ushort)ep.Port))));
         var suaveConfig = SuaveWeb.defaultConfig.withCancellationToken(_CancellationTokenSource.Token).withBindings(bindings);
         GlobalHost.DependencyResolver.Register(typeof(RemoteHub), () => new RemoteHub(_RemoteControlService, this));
         AppBootstrapper bootstrapper = new AppBootstrapper(_RemoteControlService);
         NancyOptions    nancyOptions = new NancyOptions();
         nancyOptions.Bootstrapper = bootstrapper;
         AppBuilder appBuilder = new AppBuilder();
         appBuilder.MapSignalR();
         appBuilder.UseNancy(nancyOptions);
         var owin        = appBuilder.Build();
         var app         = Suave.Owin.OwinAppModule.OfAppFunc("", owin);
         var startAction = SuaveWeb.startWebServerAsync(suaveConfig, app);
         FSharpAsync.Start(startAction.Item2, FSharpOption <CancellationToken> .Some(_CancellationTokenSource.Token));
         FSharpAsync.StartAsTask(startAction.Item1, FSharpOption <TaskCreationOptions> .Some(TaskCreationOptions.None), FSharpOption <CancellationToken> .None).ContinueWith((started) =>
         {
             _Log.Info("WebServer is running.");
             Status = ServerStatus.Ready;
         });
     }
     catch (Exception ex)
     {
         _Log.Error(string.Format("Failed to start web server: {0}", ex.Message), ex);
         Status = ServerStatus.Stopped;
         Error  = ex;
     }
 }
Example #9
0
        public MainWindow()
        {
            InitializeComponent();

            AppBootstrapper = new AppBootstrapper();
            DataContext = AppBootstrapper;
        }
Example #10
0
        public SignInViewModel(
            AppBootstrapper appBootstrapper,
            IAuthService authService = null,
            IFirebaseAuthService firebaseAuthService = null)
            : base(null)
        {
            _firebaseAuthService = firebaseAuthService ?? Locator.Current.GetService <IFirebaseAuthService>();
            authService          = authService ?? Locator.Current.GetService <IAuthService>();

            TriggerGoogleAuthFlow = ReactiveCommand.Create(
                () =>
            {
                _provider = "google";
                authService.TriggerGoogleAuthFlow(
                    Config.GoogleAuthConfig.CLIENT_ID,
                    null,
                    Config.GoogleAuthConfig.SCOPE,
                    Config.GoogleAuthConfig.AUTHORIZE_URL,
                    Config.GoogleAuthConfig.REDIRECT_URL,
                    Config.GoogleAuthConfig.ACCESS_TOKEN_URL);
            });

            TriggerGoogleAuthFlow.ThrownExceptions.Subscribe(
                ex =>
            {
                this.Log().Debug(ex);
            });

            authService.SignInSuccessful
            .SelectMany(authToken => AuthenticateWithFirebase(authToken))
            .ObserveOn(RxApp.MainThreadScheduler)
            .Subscribe(_ => appBootstrapper.MainView = new MainViewModel(appBootstrapper));
        }
Example #11
0
        public static void Main()
        {
            var       container = AppBootstrapper.ConfigureIoc();
            AppConfig appConfig = container.Resolve <IHikConfig>().Config;
            ILogger   logger    = container.Resolve <ILogger>();

            logger.Info(appConfig.ToString());

            var downloader = container.Resolve <HikDownloader>(new TypedParameter(typeof(AppConfig), appConfig));

            downloader.DownloadAsync().GetAwaiter().GetResult();

            if (appConfig.Mode == "Recurring")
            {
                logger.Info("Starting Recurring");
                var interval = appConfig.Interval * 60 * 1000;
                using (Timer timer = new Timer(async(o) => await downloader.DownloadAsync(), null, interval, interval))
                {
                    WaitForExit();
                    downloader?.Cancel();
                }
            }

            WaitForExit();
        }
Example #12
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            var bs = new AppBootstrapper <MainView>(() => { return(VMS.TPS.Common.Model.API.Application.CreateApplication()); });

            bs.Run();
        }
Example #13
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Register Fonts
            TextStyle.Default.AddFont("Archistico-Normal", "Archistico_Simple.ttf");
            TextStyle.Default.AddFont("Avenir-Medium", "Avenir-Medium.ttf");
            TextStyle.Default.AddFont("Avenir-Book", "Avenir-Book.ttf");
            TextStyle.Default.AddFont("Avenir-Heavy", "Avenir-Heavy.ttf");
            TextStyle.Default.AddFont("BreeSerif-Regular", "BreeSerif-Regular.ttf");
            TextStyle.Default.AddFont("OpenSans-CondensedBold", "OpenSans-CondBold.ttf");
            TextStyle.Default.AddFont("OpenSans-CondensedLight", "OpenSans-CondLight.ttf");

            SimpleIoc.Default.Register <ITextStyle>(() => TextStyle.Default);
            AppBootstrapper.Init();

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            var toolbar = FindViewById <Toolbar>(Resource.Id.toolbar);

            toolbar.Title = "Native Text Demo";
            SetActionBar(toolbar);


            // Set the binding BEFORE adding items so as to avoid restyling everything
            styleManager = new StyleManager();
            bindings.Add(this.SetBinding(() => ViewModelLocator.Styles.CustomTags, () => styleManager.CustomTags));

            // Assign and bind the views
            styleOne = styleManager.Add(FindViewById <TextView>(Resource.Id.titleOne), TextStyles.H2);
            bindings.Add(this.SetBinding(() => Vm.TitleOne, () => styleOne.Text));

            styleTwo = styleManager.Add(FindViewById <TextView>(Resource.Id.titleTwo), TextStyles.H1);
            bindings.Add(this.SetBinding(() => Vm.TitleTwo, () => styleTwo.Text));

            styleThree = styleManager.Add(FindViewById <TextView>(Resource.Id.titleThree), TextStyles.H2);
            bindings.Add(this.SetBinding(() => Vm.TitleThree, () => styleThree.Text));

            styleBody = styleManager.Add(FindViewById <TextView>(Resource.Id.textBody), TextStyles.Body);
            bindings.Add(this.SetBinding(() => Vm.Body, () => styleBody.Text));

            editText   = FindViewById <EditText>(Resource.Id.textEdit);
            styleEntry = styleManager.Add(editText, TextStyles.Body, enableHtmlEditing: true);
            bindings.Add(this.SetBinding(() => Vm.Entry, () => styleEntry.Text));

            // Dismiss keyboard on tap of background
            editText.EditorAction += (sender, e) =>
            {
                if (e.ActionId == ImeAction.Done)
                {
                    DismissKeyboard();
                }
            };

            var layout = (LinearLayout)FindViewById(Resource.Id.layout);

            layout.Touch += (sender, e) => DismissKeyboard();
        }
 public void Container_can_instantiate_shell_view_model()
 {
     var bootstrap = new AppBootstrapper();
     var model = bootstrap.GetInstance<ShellViewModel>();
     Assert.IsNotNull(model);
     Assert.IsNotNull(model.ActiveItem);
     Assert.AreEqual("Library", model.ActiveItem.Name);
 }
        public void SetUp()
        {
            var bootstrapper = new AppBootstrapper();
            var browser = new Browser(bootstrapper);
            bootstrapper.Initialise();

            _result = browser.Get("/", with => with.HttpRequest());
        }
Example #16
0
        public MainWindow()
        {
            InitializeComponent();

            AppBootstrapper = new AppBootstrapper();
            DataContext     = AppBootstrapper;
            this.Closing   += MainWindow_Closing;
        }
 public void Setup()
 {
     app = CreateBootstrapper();
     FileHelper.InitDir("test");
     disposable.Add(Disposable.Create(() => {
         FileHelper.Persistent(() => FileHelper.DeleteDir("test"));
     }));
 }
Example #18
0
        // ReSharper restore UnaccessedField.Local

        public App()
        {
            UnhandledException += OnUnhandledException;

            _bootstrapper = new AppBootstrapper();

            InitializeComponent();
        }
Example #19
0
        public App()
        {
            InitializeComponent();

            var bootsrapper = new AppBootstrapper();

            MainPage = bootsrapper.MainPage();
        }
        public App()
        {
            InitializeComponent();

            HtmlPreview.Init();

            bootstrapper = new AppBootstrapper();
        }
Example #21
0
        public App()
        {
            InitializeComponent();

            bootstrapper = new AppBootstrapper();

            HtmlPreview.Init( bootstrapper.GetEventAggregator() );
        }
Example #22
0
        public App()
        {
            InitializeComponent();

            var bootstrapper = new AppBootstrapper();

            bootstrapper.Initialize();
        }
Example #23
0
        public void Container_can_instantiate_shell_view_model()
        {
            var bootstrap = new AppBootstrapper();
            var model     = bootstrap.GetInstance <ShellViewModel>();

            Assert.IsNotNull(model);
            Assert.IsNotNull(model.ActiveItem);
            Assert.AreEqual("Library", model.ActiveItem.Name);
        }
Example #24
0
        // 配置应用程序启动时需要加载的项
        static void AppRuntimeStart()
        {
            AppBootstrapper.Register <RmsDbContextInitializer>();
            AppBootstrapper.Register <DtoMapperInitializer>();
            AppBootstrapper.Register <OwinClaimInitializer>();

            AppRuntime.Initialize();
            AppRuntime.Instance.CurrentApplication.Start();
        }
Example #25
0
 protected void Application_Start()
 {
     AppBootstrapper.Configure();
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
Example #26
0
 public App()
 {
     var bootstrapper = new AppBootstrapper();
     bootstrapper
         .UseResolver()
         .UseViewModelCreatorService()
         .UseViewModelFactory()
         .Initialize();
 }
Example #27
0
        // ===========================================================================
        // = Construction
        // ===========================================================================

        public App()
        {
            var bootstrapper = new AppBootstrapper(this);

            bootstrapper.Run();

            LoadConfiguration();
            //CreateInitialData();
        }
Example #28
0
        public void SetUp()
        {
            var bootstrapper = new AppBootstrapper();
            var browser      = new Browser(bootstrapper);

            bootstrapper.Initialise();

            _result = browser.Get("/", with => with.HttpRequest());
        }
        public PokemonViewModel()
        {
            Titulo      = "AutoMapper Exemplo";
            _ApiService = new PokemonService();

            _mapper = AppBootstrapper.CreateMapper();

            ObterProximoPokemonCommand = new Command(ExecuteObterProximoPokemonCommand);
        }
Example #30
0
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();

            // Create and initialize the application bootstrapper

            AppBootstrapper bootstrapper = new AppBootstrapper();
            bootstrapper.Initialize();
        }
 public virtual void SetUp()
 {
     _sut = new AppModule();
       _bootstrapper = new AppBootstrapper(
     with => {
       with.Module(_sut);
       with.RootPathProvider(new InvoiceGenRootPathProvider());
     });
       _browser = new Browser(_bootstrapper, to => to.Accept(new MediaRange("text/html")));
 }
 public virtual void SetUp()
 {
     _sut          = new AppModule();
     _bootstrapper = new AppBootstrapper(
         with => {
         with.Module(_sut);
         with.RootPathProvider(new InvoiceGenRootPathProvider());
     });
     _browser = new Browser(_bootstrapper, to => to.Accept(new MediaRange("text/html")));
 }
        public void Container_should_return_same_instance_for_library()
        {
            var bootstrap = new AppBootstrapper();
            var library1 = bootstrap.GetInstance<ILibrary>();
            Assert.IsNotNull(library1);

            var library2 = bootstrap.GetInstance<ILibrary>();
            Assert.IsNotNull(library2);

            Assert.AreSame(library1, library2);
        }
        public void Container_should_a_new_instance_for_mediaitemview()
        {
            var bootstrap = new AppBootstrapper();
            var view1 = bootstrap.GetInstance<MediaItemView>();
            Assert.IsNotNull(view1);

            var view2 = bootstrap.GetInstance<MediaItemView>();
            Assert.IsNotNull(view2);

            Assert.AreNotSame(view1, view2);
        }
Example #35
0
        public App()
        {
            var containerAdapter = new ExtendedSimpleContainerAdapter();

            var bootstrapper = new AppBootstrapper(containerAdapter);
            bootstrapper
                .UseResolver()
                .UseShared()
                .UseNavigation<ShellViewModel, ExtendedSimpleContainerAdapter>(containerAdapter)
                .Initialize();
        }
Example #36
0
 protected override void OnStartup(StartupEventArgs e)
 {
     string[] args = e.Args;
     base.OnStartup(e);
     var bs = new AppBootstrapper<MainView>(() => { return VMS.TPS.Common.Model.API.Application.CreateApplication(); });
     //You can use the following to load a context (for debugging purposes)
     //args = ContextIO.ReadArgsFromFile(@"context.txt");
     //Might disable (uncomment) for plugin mode
     //bs.IsPatientSelectionEnabled = false;
     bs.Run(args);
 }
Example #37
0
        protected override void OnAppearing()
        {
            base.OnAppearing();

            //await splashImage.ScaleTo(1, 500);
            //await splashImage.ScaleTo(0.5, 500, Easing.Linear);
            //await splashImage.ScaleTo(3, 500, Easing.Linear);
            var bootstrapper = new AppBootstrapper();

            Application.Current.MainPage = new MasterView(bootstrapper.CreateMasterViewModel());
        }
Example #38
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Register a new text style
            SimpleIoc.Default.Register <ITextStyle>(() => TextStyle.Default);

            AppBootstrapper.Init();

            UIBarButtonItem.Appearance.TintColor = ColorSwatches.SpotColor.ToNative();

            return(true);
        }
        private AppBootstrapper CreateBootstrapper()
        {
            //нужно переопределить имя что бы избежать конфликтов с запущенным приложением
            var app = new AppBootstrapper(false);

            disposable.Add(app);
            app.Config.RootDir      = "test";
            app.Config.DbDir        = Path.GetFullPath(IntegrationSetup.clientConfig.DbDir);
            app.Config.SettingsPath = "AnalitF.Net.Client.Test";
            Execute.ResetWithoutDispatcher();
            return(app);
        }
Example #40
0
 public static void MainForNode() {
     SetupRegistry();
     SetupAssemblyLoader();
     VisualExtensions.Waiter = TaskExt.WaitAndUnwrapException;
     SetupLogging();
     new AssemblyHandler().Register();
     HandlePorts();
     //HandleSquirrel(arguments);
     InstallFlash();
     _bs = new AppBootstrapper(new Container(), Locator.CurrentMutable);
     _bs.Startup();
 }
Example #41
0
        private void OnStartup(object sender, StartupEventArgs e)
        {
            if (!System.Diagnostics.Debugger.IsAttached)
            {
                RegisterUnhandledExceptionHandlers();
            }

            bootstrapper = new AppBootstrapper();
            bootstrapper.Run();

            Log = Locator.Current.GetService <ILogger>();
        }
Example #42
0
        static void Main(string[] args)
        {
            var       container = AppBootstrapper.ConfigureIoc();
            AppConfig appConfig = container.Resolve <IHikConfig>().Config;
            ILogger   logger    = container.Resolve <ILogger>();

            logger.Info(appConfig.ToString());

            var job = new HikJob
            {
                Started = DateTime.Now,
                JobType = nameof(HikDownloader),
            };

            var config = new ConfigurationBuilder()
                         .SetBasePath(AssemblyDirectory)
                         .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
                         .Build();

            var uowf = new UnitOfWorkFactory(config.GetConnectionString("HikConnectionString"));

            using (var unitOfWork = uowf.CreateUnitOfWork())
            {
                var jobRepo = unitOfWork.GetRepository <HikJob>();
                jobRepo.Add(job).GetAwaiter().GetResult();
                unitOfWork.SaveChangesAsync().GetAwaiter().GetResult();
            }

            var downloader = container.Resolve <HikDownloader>(new TypedParameter(typeof(AppConfig), appConfig));

            job.Finished = DateTime.Now;
            var result = downloader.DownloadAsync().GetAwaiter().GetResult();

            logger.Info("Save to DB...");
            var jobResultSaver = new JobService(uowf, job, result);

            jobResultSaver.SaveAsync().GetAwaiter().GetResult();
            logger.Info("Save to DB. Done!");

            if (appConfig.Mode == "Recurring")
            {
                logger.Info("Starting Recurring");
                var interval = appConfig.Interval * 60 * 1000;
                using (Timer timer = new Timer(async(o) => await downloader.DownloadAsync(), null, interval, interval))
                {
                    WaitForExit();
                    downloader?.Cancel();
                }
            }

            WaitForExit();
        }
Example #43
0
        protected override void OnStartup(StartupEventArgs e) {
            base.OnStartup(e);

            _bootstrapper = new AppBootstrapper(new Container(), Locator.CurrentMutable);
            // TODO: In command mode perhaps we shouldnt even run a WpfApp instance or ??
            if (Entrypoint.CommandMode)
                RunCommands();
            else {
                _bootstrapper.Startup();
                CreateMainWindow();
                _bootstrapper.AfterWindow();
            }
        }
 public virtual void SetUp()
 {
     _loginHandler     = _loginHandler.Fake();
     _dashboardHandler = _dashboardHandler.Fake();
     _sut          = new AppModule(_loginHandler, _dashboardHandler);
     _bootstrapper = new AppBootstrapper(
         with => {
         with.Module(_sut);
         with.RootPathProvider(new VoterRootPathProvider());
     },
         enableViewSupportWhichMakesTheUnitTestsReallySlow: true);
     _browser = new Browser(_bootstrapper, to => to.Accept(new MediaRange("text/html")));
 }
        public MainWindow()
        {
            InitializeComponent();

            AppBootstrapper = new AppBootstrapper();
            DataContext     = AppBootstrapper;

            ListMsgDestroy = new ObservableCollection <string>();
            ListMsgCreate  = new ObservableCollection <string>();

            LbLogDestroy.ItemsSource = ListMsgDestroy;
            LbLogCreate.ItemsSource  = ListMsgCreate;
        }
Example #46
0
 private static void RunInReleaseMode()
 {
     AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException;
     try
     {
         AppBootstrapper bootstrapper = new AppBootstrapper();
         bootstrapper.Run();
     }
     catch (Exception ex)
     {
         HandleException(ex);
     }
 }
Example #47
0
        public void smoke()
        {
            var bootstrapper = new AppBootstrapper();
            var browser = new Browser(bootstrapper);
            bootstrapper.Initialise();

            var response = browser.Post("/queue/", (with) =>
            {
              with.HttpRequest();
                with.FormValue("Feature", "feat");
                with.FormValue("Scenario", "sce");
                with.FormValue("Environment", "env");
            });

            Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
        }
Example #48
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            DispatcherUnhandledException += App_DispatcherUnhandledException;

            var boot = new AppBootstrapper();

            ConfigurationSerializer.CheckFolder();

            dynamic settings = new ExpandoObject();
            settings.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            settings.Width = 800;
            settings.Height = 600;
            settings.SizeToContent = SizeToContent.Manual;

            var windowManager = IoC.Get<IWindowManager>();
            windowManager.ShowDialog(new ShellViewModel(), null, settings);
        }
Example #49
0
 public App()
 {
     var bootstrapper = new AppBootstrapper();
     bootstrapper.UseResolver().Initialize();
 }
Example #50
0
        public App()
        {
            InitializeComponent();

            _bootstrapper = new AppBootstrapper();
        }
Example #51
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     b = new AppBootstrapper();
     b.Run();
 }
 public void TestInitialize()
 {
     Bootstrapper = new TestableAppBootstrapper();
     Container = Bootstrapper.GetContainer();
 }
Example #53
0
 public MDLink(AppBootstrapper bootstrapper)
 {
     this.bootstrapper = bootstrapper;
 }
 public void Initial_model_should_be_the_shell()
 {
     var bootstrap = new AppBootstrapper();
     Assert.AreEqual(typeof(ShellViewModel), bootstrap.GetType().BaseType.GetGenericArguments()[0]);
 }
Example #55
0
 private static void RunInDebugMode()
 {
     AppBootstrapper bootstrapper = new AppBootstrapper();
     bootstrapper.Run();
 }
 public App()
 {
     var bootstrapper = new AppBootstrapper();
     bootstrapper.Run();
 }
Example #57
0
 public MainWindow()
 {
     ViewModel = new AppBootstrapper();
     InitializeComponent();
 }
Example #58
0
 public App()
 {            
     var bootstrapper = new AppBootstrapper(new UnityContainerAdapter());
     bootstrapper.UseResolver().UseShared().Initialize();            
 }