protected virtual void OnSendError(IssueSendEventArgs e) { EventHandler<IssueSendEventArgs> handler = SendError; if (handler != null) handler(this, e); }
protected virtual void OnIssueCommand(IssueSendEventArgs e) { EventHandler<IssueSendEventArgs> handler = IssueCommand; if (handler != null) handler(this, e); }
public void IssueMessage(object sender, IssueSendEventArgs e) { int bytesSent = SendMessage(e.Data, e.Destination.Address); if (bytesSent != -1) OnSendError(new IssueSendEventArgs(e.Destination, BitConverter.GetBytes(bytesSent))); }