Esempio n. 1
0
        public async Task Monitor([FromBody] UrlMonitoringObjectModel model)
        {
            var mappedModel = new MonitoringObject()
            {
                ServiceName = model.ServiceName,
                Url         = model.Url
            };

            await _monitoringService.MonitorAsync(mappedModel);
        }
 public async Task MonitorUrl(UrlMonitoringObjectModel urlMonitoringObjectModel)
 {
     await UrlMonitoring.Monitor(urlMonitoringObjectModel);
 }