Example #1
0
		protected virtual void OnSendError(IssueSendEventArgs e)
		{
			EventHandler<IssueSendEventArgs> handler = SendError;
			if (handler != null)
            	handler(this, e);
		}	
Example #2
0
		protected virtual void OnIssueCommand(IssueSendEventArgs e)
		{
			EventHandler<IssueSendEventArgs> handler = IssueCommand;
			if (handler != null)
            	handler(this, e);
		}
Example #3
0
		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)));
		}