Beispiel #1
0
        public async Task AwaitFlowControl()
        {
            SendBytes sb = SendBytes;

            sb.Bytes = ToSend.Prepend((byte)NumberType).ToArray();
            await sb.AwaitFlowControl();
        }
Beispiel #2
0
        public async Task AwaitFlowControl()
        {
            SendBytes sb = SendBytes;

            sb.Bytes = Encoding.GetBytes(ToSend);
            await sb.AwaitFlowControl();
        }
Beispiel #3
0
 public SendString(SendBytes sendBytes, Encoding encoding = null) :
     this(null, sendBytes, encoding)
 {
 }
Beispiel #4
0
 public SendString(string toSend, SendBytes sendBytes, Encoding encoding = null)
 {
     ToSend    = toSend;
     SendBytes = sendBytes;
     Encoding  = encoding != null ? encoding : Encoding.ASCII;
 }
Beispiel #5
0
 public SendNumber(SendBytes sendBytes)
     : this(null, sendBytes)
 {
 }
Beispiel #6
0
 public SendNumber(object number, SendBytes sendBytes) : this()
 {
     Number    = number;
     SendBytes = sendBytes;
 }
Beispiel #7
0
 public SendEnum(T toSend, SendBytes sendBytes, Encoding encoding = null) :
     this(toSend, new SendString(sendBytes, encoding))
 {
 }