public override async Task<CommandProcessingResult> HandleCommandAsync(DeserializableCommand deserializableCommand)
{
if (deserializableCommand.CommandName == STOP_TELEMETRY)
{
try
{
var device = Device as CoolerDevice;
device.StopTelemetryData();
return CommandProcessingResult.Success;
}
catch (Exception)
{
return CommandProcessingResult.RetryLater;
}
}
else if (NextCommandProcessor != null)
{
return await NextCommandProcessor.HandleCommandAsync(deserializableCommand);
}
return CommandProcessingResult.CannotComplete;
}
}