示例#1
0
        static public async Task <bool> ReplyBadPacketAsync(IController ctrl, uint flags)
        {
            //What is this for? Nack + Ping?  What can the TinyCLR possibly do with this information?
            OutgoingMessage msg = new OutgoingMessage(ctrl, new WireProtocol.Converter(), Commands.c_Monitor_Ping, Flags.c_NonCritical | Flags.c_NACK | flags, null);

            return(await msg.SendAsync().ConfigureAwait(false));
        }
示例#2
0
        public async Task <bool> ReplyAsync(Converter converter, uint flags, object payload)
        {
            OutgoingMessage msgReply = new OutgoingMessage(this, converter, flags, payload);

            return(await msgReply.SendAsync().ConfigureAwait(false));
        }