예제 #1
0
        public static WrappedOp <CommandResponseOp> CreateCommandResponseOp(uint componentId, uint commandIndex, long requestId)
        {
            var schemaResponse = new SchemaCommandResponse(componentId, commandIndex);

            var op = new CommandResponseOp
            {
                Response  = new CommandResponse(schemaResponse),
                RequestId = new RequestId <OutgoingCommandRequest>(requestId)
            };

            return(new WrappedOp <CommandResponseOp>(op));
        }
예제 #2
0
        public void SendCommandResponse(long requestId, uint componentId, uint commandIndex, SchemaCommandResponse response)
        {
            lock (connectionLock)
            {
                ThrowIfNotConnected();

                connection.SendCommandResponse(requestId, new CommandResponse(componentId, commandIndex, response));
            }
        }