public static void RegisterWithMessageBus(this SimpleIoc container) { IServiceMessageBusRegister register = container.GetInstance <IServiceMessageBusRegister>(); register.Register(container.GetInstance <PowerShellFallbackService>()); register.Register(container.GetInstance <ClipboardMonitoringService>()); }
private IEnvironmentService CreateEnvironmentService() { var service = new EnvironmentService(messageBus); registerToMessageBus.Register <ISettingUpdatedMessage>(service); return(service); }