Пример #1
0
        internal async Task SendCommandAsyncInternal(Command c)
        {
            await _comm.WriteAsync(c.ToBytes());

            if (c.CommandType == CommandType.DirectReply || c.CommandType == CommandType.SystemReply)
            {
                await ResponseManager.WaitForResponseAsync(c.Response);
            }
        }
Пример #2
0
		internal async Task SendCommandAsyncInternal(Command c)
		{
			await _comm.WriteAsync(c.ToBytes());
			if(c.CommandType == CommandType.DirectReply || c.CommandType == CommandType.SystemReply)
				await ResponseManager.WaitForResponseAsync(c.Response);
		}