private async Task dispatchCommand(string scheduleId, string commandName) { List <KeyValuePair <string, string> > cmdParams = new List <KeyValuePair <string, string> >(); var param1 = new KeyValuePair <string, string>("param-1", "test"); cmdParams.Add(param1); var dummyCommand = new AgentCommandDto(); dummyCommand.command = commandName; dummyCommand.schedule = scheduleId; dummyCommand.parameters = cmdParams; dummyCommand.id = Guid.NewGuid().ToString(); var scheduleMessage = JsonSerializer.Serialize(dummyCommand); var agentQClient = getAgentQClient(); agentQClient.PublishAsync(scheduleMessage); }
public async Task CreateMonitor(AgentCommandDto commandDto) { }
public Task UpdateMonitor(AgentCommandDto commandDto) { throw new NotImplementedException(); }