From 016522fbd52ccaa0eae4a4fae266935ae3de508f Mon Sep 17 00:00:00 2001 From: KharchenkoVV Date: Thu, 22 Jul 2021 15:22:33 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=B5=20Duration=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=BE=20=D0=BD=D0=B0=20Dur?= =?UTF-8?q?ationSec=20(=D0=B2=20Dto=20=D0=B8=20=D0=BC=D0=BE=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B8=20=D0=B4=D0=BB=D1=8F=20Operation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudApp/Data/OperationDetailsDto.cs | 2 +- AsbCloudInfrastructure/Services/AnalyticsService.cs | 2 +- AsbCloudInfrastructure/Services/DataService.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AsbCloudApp/Data/OperationDetailsDto.cs b/AsbCloudApp/Data/OperationDetailsDto.cs index 2868357f..9d1c2b35 100644 --- a/AsbCloudApp/Data/OperationDetailsDto.cs +++ b/AsbCloudApp/Data/OperationDetailsDto.cs @@ -3,6 +3,6 @@ public class OperationDetailsDto { public string OperationName { get; set; } - public int Duration { get; set; } + public int DurationSec { get; set; } } } diff --git a/AsbCloudInfrastructure/Services/AnalyticsService.cs b/AsbCloudInfrastructure/Services/AnalyticsService.cs index 31b2e601..6721c9c1 100644 --- a/AsbCloudInfrastructure/Services/AnalyticsService.cs +++ b/AsbCloudInfrastructure/Services/AnalyticsService.cs @@ -208,7 +208,7 @@ namespace AsbCloudInfrastructure.Services Operations = o.Select(opr => new OperationDetailsDto { OperationName = opr.OperationName, - Duration = opr.OperationsDuration + DurationSec = opr.OperationsDuration }).ToList() }) .OrderBy(ops => ops.IntervalBegin); diff --git a/AsbCloudInfrastructure/Services/DataService.cs b/AsbCloudInfrastructure/Services/DataService.cs index 58055f32..daedb0b8 100644 --- a/AsbCloudInfrastructure/Services/DataService.cs +++ b/AsbCloudInfrastructure/Services/DataService.cs @@ -19,8 +19,8 @@ namespace AsbCloudInfrastructure.Services private readonly CacheTable cacheWells; public DataService(IAsbCloudDbContext db, ITelemetryService telemetryService, - IAnalyticsService analyticsService, ISaubDataCache saubDataCache, - CacheDb cacheDb, MapperConfiguration mapperConfiguration) + IAnalyticsService analyticsService, CacheDb cacheDb, + MapperConfiguration mapperConfiguration) { this.db = db; this.telemetryService = telemetryService;