static public async Task <bool> ReplyBadPacketAsync(IController ctrl, uint flags, CancellationToken cancellationToken)
        {
            //What is this for? Nack + Ping?  What can the nanoCLR 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(cancellationToken));
        }
        public async Task <bool> ReplyAsync(Converter converter, uint flags, object payload, CancellationToken cancellationToken)
        {
            OutgoingMessage msgReply = new OutgoingMessage(this, converter, flags, payload);

            return(await msgReply.SendAsync(cancellationToken));
        }
예제 #3
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));
        }