public MQLCommandRequest(int id, MQLCommand command, List <object> parameters) { LOG.DebugFormat("MQLCommandRequest: {0} {1}", id, command.ToString()); this.id = id; this.command = command; this.parameters = parameters; this.error = 0; this.commandWaiting = true; }
public MQLCommandRequest(int id, MQLCommand command, List<object> parameters) { LOG.DebugFormat("MQLCommandRequest: {0} {1}", id, command.ToString()); this.id = id; this.command = command; this.parameters = parameters; this.error = 0; this.commandWaiting = true; }
public MQLCommandRequest(int id, MQLCommand command, List <object> parameters, TaskCompletionSource <Object> taskCompletionSource = null) { LOG.DebugFormat("MQLCommandRequest: {0} {1}", id, command.ToString()); ID = id; Command = command; Parameters = parameters; Error = 0; CommandWaiting = true; TaskCompletionSource = taskCompletionSource; }
public int ExecCommand(MQLCommand command, List<Object> parameters) { LOG.DebugFormat("ExecCommand: {0}", command.ToString()); int id; lock (syncLock) { id = counter++; commandRequests[id] = new MQLCommandRequest(id, command, parameters); } return id; }
public int ExecCommand(MQLCommand command, List <Object> parameters) { LOG.DebugFormat("ExecCommand: {0}", command.ToString()); int id; lock (syncLock) { id = counter++; commandRequests[id] = new MQLCommandRequest(id, command, parameters); } return(id); }
public int ExecCommand(MQLCommand command, List <Object> parameters, TaskCompletionSource <Object> taskCompletionSource = null) { LOG.DebugFormat("ExecCommand: {0}", command.ToString()); int id; lock (syncLock) { id = counter++; commandRequests[id] = new MQLCommandRequest(id, command, parameters, taskCompletionSource); NotifyHost(command, id); } return(id); }