public System.Threading.Tasks.Task <MOE.Common.Business.ApproachVolume.MetricInfo[]> CreateMetricWithDataTableAsync(MOE.Common.Business.WCFServiceLibrary.ApproachVolumeOptions options) { return(base.Channel.CreateMetricWithDataTableAsync(options)); }
public List <MOE.Common.Business.ApproachVolume.MetricInfo> CreateMetricWithDataTable(MOE.Common.Business.WCFServiceLibrary.ApproachVolumeOptions options) { try { MOE.Common.Models.Repositories.IMetricTypeRepository metricTypeRepository = MOE.Common.Models.Repositories.MetricTypeRepositoryFactory.Create(); options.MetricType = metricTypeRepository.GetMetricsByID(options.MetricTypeID); options.CreateMetric(); } catch (Exception ex) { MOE.Common.Models.Repositories.IApplicationEventRepository logRepository = MOE.Common.Models.Repositories.ApplicationEventRepositoryFactory.Create(); MOE.Common.Models.ApplicationEvent e = new MOE.Common.Models.ApplicationEvent(); e.ApplicationName = "MOEWCFServicLibrary"; e.Class = this.GetType().ToString(); e.Function = "CreateMetric"; e.SeverityLevel = MOE.Common.Models.ApplicationEvent.SeverityLevels.High; e.Description = ex.Message; e.Timestamp = DateTime.Now; logRepository.Add(e); throw; } return(options.MetricInfoList); }
public MOE.Common.Business.ApproachVolume.MetricInfo[] CreateMetricWithDataTable(MOE.Common.Business.WCFServiceLibrary.ApproachVolumeOptions options) { return(base.Channel.CreateMetricWithDataTable(options)); }