Inheritance: IDispatcherExecute
コード例 #1
0
        public override void Load()
        {
            Bind<IMessageService>().To<ConsoleMessageService>().InSingletonScope();
            Bind<IEventService>().To<EventService>().InSingletonScope();
            Bind<CommonServices>().ToSelf().InSingletonScope();
           // Bind<IFileSystem>().To<FileSystemService>().InSingletonScope();
            //Bind<IProcesses>().To<Processes>().InSingletonScope();
            Bind<IThreadPoolExecute>().To<ThreadPoolExecute>();

            var exe = new ImmediateExecute();
            Bind<IDispatcherExecute>().ToConstant(exe);
            //Kernel.InjectFuncFactory(() => DateTime.Now);
        }
コード例 #2
0
        public override void Load()
        {
            Bind <IMessageService>().To <ConsoleMessageService>().InSingletonScope();
            Bind <IEventService>().To <EventService>().InSingletonScope();
            Bind <CommonServices>().ToSelf().InSingletonScope();
            // Bind<IFileSystem>().To<FileSystemService>().InSingletonScope();
            //Bind<IProcesses>().To<Processes>().InSingletonScope();
            Bind <IThreadPoolExecute>().To <ThreadPoolExecute>();

            var exe = new ImmediateExecute();

            Bind <IDispatcherExecute>().ToConstant(exe);
            //Kernel.InjectFuncFactory(() => DateTime.Now);
        }