Ejemplo n.º 1
0
        public ProcessInterface(CallTransmissionChannel <IProcessChannel> processChannel)
        {
            processChannel.SuspendSubscribing();
            processChannel.Interface.Error  += InterfaceOnError;
            processChannel.Interface.Output += InterfaceOnOutput;
            processChannel.Interface.Exited += InterfaceOnExited;
            processChannel.ResumeSubscribing();

            ProcessChannel = processChannel;
        }
Ejemplo n.º 2
0
        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;
        }