Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var kernel = new StandardKernel(new INinjectModule[]{new DiModule()});

            RegisterTrgiggeredWindows(kernel.Get<WindowsAllocator>());

            _worker = kernel.Get<ApplicationWorker>();
            _worker.Start(Current);

            base.OnStartup(e);
        }
Esempio n. 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            var kernel = new StandardKernel(new INinjectModule[] { new DiModule() });

            RegisterTrgiggeredWindows(kernel.Get <WindowsAllocator>());

            _worker = kernel.Get <ApplicationWorker>();
            _worker.Start(Current);


            base.OnStartup(e);
        }