public ProcessInterface(CallTransmissionChannel <IProcessChannel> processChannel) { processChannel.SuspendSubscribing(); processChannel.Interface.Error += InterfaceOnError; processChannel.Interface.Output += InterfaceOnOutput; processChannel.Interface.Exited += InterfaceOnExited; processChannel.ResumeSubscribing(); ProcessChannel = processChannel; }
public async Task Enable() { var currentClipboardData = Clipboard.GetDataObject(); _channel = await ClipboardManagerResource.GetClipboardNotificationChannel(_restClient); _channel.Interface.ClipboardUpdated += InterfaceOnClipboardUpdated; await _channel.Interface.SetData(ClipboardDataExtensions.FromDataObject(currentClipboardData)); await _channel.Interface.Listen(); _clipboardWatcher.ClipboardUpdated += ClipboardWatcherOnClipboardUpdated; }