Beispiel #1
0
        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);
        }
Beispiel #2
0
 public async Task CreateMonitor(AgentCommandDto commandDto)
 {
 }
Beispiel #3
0
 public Task UpdateMonitor(AgentCommandDto commandDto)
 {
     throw new NotImplementedException();
 }