コード例 #1
0
 public void SendEventAsync(TypedEvent typedEvent) {
   var ipcEvent = new IpcEvent {
     RequestId = _requestIdFactory.GetNextId(),
     Protocol = IpcProtocols.TypedMessage,
     Data = typedEvent
   };
   _responseQueue.Enqueue(ipcEvent);
 }
コード例 #2
0
        private void ServerProcessProxyOnEventReceived(IpcEvent ipcEvent)
        {
            var @event = ipcEvent.Data as TypedEvent;

            if (@event != null)
            {
                OnEventReceived(@event);
            }
        }
コード例 #3
0
        protected virtual void OnEventReceived(IpcEvent obj)
        {
            var handler = EventReceived;

            if (handler != null)
            {
                handler(obj);
            }
        }
コード例 #4
0
 protected void OnEventReceived(IpcEvent obj)
 {
     // Special case: progress report events are too noisy...
     if (!(obj.Data is ProgressReportEvent))
     {
         Logger.LogInfo("Event {0} of type \"{1}\" received from server.", obj.RequestId, obj.Data.GetType().Name);
     }
     EventReceived?.Invoke(obj);
 }
コード例 #5
0
 private void OnEventReceived(IpcEvent obj) {
   // Special case: progress report events are too noisy...
   if (!(obj.Data is ProgressReportEvent)) {
     Logger.LogInfo("Event {0} of type \"{1}\" received from server.", obj.RequestId, obj.Data.GetType().Name);
   }
   var handler = EventReceived;
   if (handler != null)
     handler(obj);
 }
コード例 #6
0
        public void SendEventAsync(TypedEvent typedEvent)
        {
            var ipcEvent = new IpcEvent {
                RequestId = _requestIdFactory.GetNextId(),
                Protocol  = IpcProtocols.TypedMessage,
                Data      = typedEvent
            };

            _responseQueue.Enqueue(ipcEvent);
        }
コード例 #7
0
        private void OnEventReceived(IpcEvent obj)
        {
            // Special case: progress report events are too noisy...
            if (!(obj.Data is ProgressReportEvent))
            {
                Logger.LogInfo("Event {0} of type \"{1}\" received from server.", obj.RequestId, obj.Data.GetType().Name);
            }
            var handler = EventReceived;

            if (handler != null)
            {
                handler(obj);
            }
        }
コード例 #8
0
 protected virtual void OnEventReceived(IpcEvent obj)
 {
     var handler = EventReceived;
       if (handler != null)
     handler(obj);
 }
コード例 #9
0
 protected virtual void OnEventReceived(IpcEvent obj)
 {
     EventReceived?.Invoke(obj);
 }