/// <summary>
 /// Writes binary to the connector.
 /// </summary>
 /// <param name="data">Binary to write</param>
 public virtual void WriteBinary(byte[] data)
 {
     OnBinaryWrite?.Invoke(new BinaryMessageEvent(data));
 }
示例#2
0
 /// <summary>
 /// Writes binary to the connector.
 /// </summary>
 /// <param name="data">Binary to write</param>
 public virtual Task Write(byte[] data)
 {
     OnBinaryWrite?.Invoke(new BinaryMessageEvent(data));
     return(Task.FromResult(false));
 }