示例#1
0
        public static void RegisterWithMessageBus(this SimpleIoc container)
        {
            IServiceMessageBusRegister register = container.GetInstance <IServiceMessageBusRegister>();

            register.Register(container.GetInstance <PowerShellFallbackService>());
            register.Register(container.GetInstance <ClipboardMonitoringService>());
        }
示例#2
0
        private IEnvironmentService CreateEnvironmentService()
        {
            var service = new EnvironmentService(messageBus);

            registerToMessageBus.Register <ISettingUpdatedMessage>(service);
            return(service);
        }