public UpdateMessagesMediator(ISettingsObserver settingsObserver, IProcessInformationService processInformationService, IInstanceCommunicationService instanceCommunicationService, ExecutionContext executionContext, ISdkRepository sdkRepository, CancellationToken cancellationToken) { this.settingsObserver = settingsObserver; this.processInformationService = processInformationService; this.instanceCommunicationService = instanceCommunicationService; this.executionContext = executionContext; this.sdkRepository = sdkRepository; this.cancellationToken = cancellationToken; settingsObserver.SettingAdded += SettingsObserverOnSettingChanged; settingsObserver.SettingCleared += SettingsObserverOnSettingChanged; settingsObserver.SettingRemoved += SettingsObserverOnSettingChanged; settingsObserver.SettingSet += SettingsObserverOnSettingChanged; executionContext.ObservableRegistered += ExecutionContextOnObservableRegistered; executionContext.ObservableUnregistered += ExecutionContextOnObservableUnregistered; sdkRepository.Updated += SdkRepositoryOnUpdated; }