InternalSendAsync() private method

private InternalSendAsync ( byte message, uint id ) : Task
message byte
id uint
return Task
Example #1
0
        /// <summary>
        /// Reply to the message
        /// </summary>
        /// <param name="message">the reply message data</param>
        /// <exception cref="InvalidOperationException">non-replyable message</exception>
        public Task ReplyAsync(byte[] message)
        {
            if (_id == null)
            {
                throw new InvalidOperationException("Sender did not provide reply information");
            }

            return(_client.InternalSendAsync(message, _id));
        }