public async Task PublishAsync()
        {
            var httpMonitors = await _repository.GetAsync();

            var commands = httpMonitors.Select(x => x.CreateCheckHttpEndpoint(HttpMonitorCheckId.Create()));

            await _publisher.PublishAsync(commands);
        }
 public Task <IEnumerable <HttpMonitor> > GetHttpMonitorsAsync()
 {
     return(_repository.GetAsync());
 }