public async Task AwaitFlowControl() { SendBytes sb = SendBytes; sb.Bytes = ToSend.Prepend((byte)NumberType).ToArray(); await sb.AwaitFlowControl(); }
public async Task AwaitFlowControl() { SendBytes sb = SendBytes; sb.Bytes = Encoding.GetBytes(ToSend); await sb.AwaitFlowControl(); }
public SendString(SendBytes sendBytes, Encoding encoding = null) : this(null, sendBytes, encoding) { }
public SendString(string toSend, SendBytes sendBytes, Encoding encoding = null) { ToSend = toSend; SendBytes = sendBytes; Encoding = encoding != null ? encoding : Encoding.ASCII; }
public SendNumber(SendBytes sendBytes) : this(null, sendBytes) { }
public SendNumber(object number, SendBytes sendBytes) : this() { Number = number; SendBytes = sendBytes; }
public SendEnum(T toSend, SendBytes sendBytes, Encoding encoding = null) : this(toSend, new SendString(sendBytes, encoding)) { }