public void SendEventAsync(TypedEvent typedEvent) { var ipcEvent = new IpcEvent { RequestId = _requestIdFactory.GetNextId(), Protocol = IpcProtocols.TypedMessage, Data = typedEvent }; _responseQueue.Enqueue(ipcEvent); }
private void ServerProcessProxyOnEventReceived(IpcEvent ipcEvent) { var @event = ipcEvent.Data as TypedEvent; if (@event != null) { OnEventReceived(@event); } }
protected virtual void OnEventReceived(IpcEvent obj) { var handler = EventReceived; if (handler != null) { handler(obj); } }
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); }
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); }
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); } }
protected virtual void OnEventReceived(IpcEvent obj) { var handler = EventReceived; if (handler != null) handler(obj); }
protected virtual void OnEventReceived(IpcEvent obj) { EventReceived?.Invoke(obj); }