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)); }
public void SendCommandResponse(long requestId, uint componentId, uint commandIndex, SchemaCommandResponse response) { lock (connectionLock) { ThrowIfNotConnected(); connection.SendCommandResponse(requestId, new CommandResponse(componentId, commandIndex, response)); } }