From 3b8b3e38f044bed115a83f65853bf291c1ac9ae1 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Tue, 3 Oct 2023 09:15:19 +0500 Subject: [PATCH] =?UTF-8?q?ISlipsStatsRepository=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B8=D0=BC=D0=B5=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=20=D0=B2?= =?UTF-8?q?=20ISlipsStatRepository?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...tatsRepository.cs => ISlipsStatRepository.cs} | 2 +- AsbCloudInfrastructure/DependencyInjection.cs | 16 ++-------------- .../Repository/SlipsStatRepository.cs | 2 +- .../Controllers/SlipsStatController.cs | 4 ++-- 4 files changed, 6 insertions(+), 18 deletions(-) rename AsbCloudApp/Repositories/{ISlipsStatsRepository.cs => ISlipsStatRepository.cs} (94%) diff --git a/AsbCloudApp/Repositories/ISlipsStatsRepository.cs b/AsbCloudApp/Repositories/ISlipsStatRepository.cs similarity index 94% rename from AsbCloudApp/Repositories/ISlipsStatsRepository.cs rename to AsbCloudApp/Repositories/ISlipsStatRepository.cs index 644a8a79..6561b0b6 100644 --- a/AsbCloudApp/Repositories/ISlipsStatsRepository.cs +++ b/AsbCloudApp/Repositories/ISlipsStatRepository.cs @@ -10,7 +10,7 @@ namespace AsbCloudApp.Repositories /// /// Сервис для получения аналитики удержания в клиньях /// - public interface ISlipsStatsRepository + public interface ISlipsStatRepository { /// /// Получение записей для построения аналитики удержания в клиньях diff --git a/AsbCloudInfrastructure/DependencyInjection.cs b/AsbCloudInfrastructure/DependencyInjection.cs index fff81d0e..d499ef02 100644 --- a/AsbCloudInfrastructure/DependencyInjection.cs +++ b/AsbCloudInfrastructure/DependencyInjection.cs @@ -26,12 +26,8 @@ using System; using AsbCloudApp.Data.Manuals; using AsbCloudApp.Services.AutoGeneratedDailyReports; using AsbCloudApp.Services.Notifications; -using AsbCloudApp.Services.WellOperationImport; using AsbCloudDb.Model.Manuals; using AsbCloudInfrastructure.Services.AutoGeneratedDailyReports; -using AsbCloudInfrastructure.Services.WellOperationImport; -using AsbCloudInfrastructure.Services.WellOperationImport.FileParser; -using AsbCloudInfrastructure.Services.ProcessMap.ProcessMapWellboreDevelopment; namespace AsbCloudInfrastructure { @@ -123,7 +119,6 @@ namespace AsbCloudInfrastructure services.AddTransient(); services.AddTransient(); services.AddTransient(); - services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); @@ -136,6 +131,7 @@ namespace AsbCloudInfrastructure services.AddTransient(); services.AddTransient(); services.AddTransient(); + services.AddTransient(); services.AddTransient(); services.AddTransient(); services.AddTransient(); @@ -151,7 +147,6 @@ namespace AsbCloudInfrastructure services.AddTransient(); services.AddTransient(); services.AddTransient(); - services.AddTransient(); services.AddTransient(); services.AddTransient(); @@ -204,7 +199,7 @@ namespace AsbCloudInfrastructure services.AddTransient(); services.AddTransient(); services.AddTransient(); - services.AddTransient(); + services.AddTransient(); services.AddTransient(); services.AddTransient, CrudCacheRepositoryBase>(); @@ -236,13 +231,6 @@ namespace AsbCloudInfrastructure services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - - services.AddTransient(); - services.AddTransient(); - return services; } diff --git a/AsbCloudInfrastructure/Repository/SlipsStatRepository.cs b/AsbCloudInfrastructure/Repository/SlipsStatRepository.cs index 7e43f000..4ca96b95 100644 --- a/AsbCloudInfrastructure/Repository/SlipsStatRepository.cs +++ b/AsbCloudInfrastructure/Repository/SlipsStatRepository.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; namespace AsbCloudInfrastructure.Repository { - public class SlipsStatRepository : ISlipsStatsRepository + public class SlipsStatRepository : ISlipsStatRepository { private readonly IAsbCloudDbContext db; public SlipsStatRepository(IAsbCloudDbContext db) diff --git a/AsbCloudWebApi/Controllers/SlipsStatController.cs b/AsbCloudWebApi/Controllers/SlipsStatController.cs index 2bedb278..fe0c7222 100644 --- a/AsbCloudWebApi/Controllers/SlipsStatController.cs +++ b/AsbCloudWebApi/Controllers/SlipsStatController.cs @@ -20,9 +20,9 @@ namespace AsbCloudWebApi.Controllers [Authorize] public class SlipsStatController : ControllerBase { - private readonly ISlipsStatsRepository slipsAnalyticsService; + private readonly ISlipsStatRepository slipsAnalyticsService; - public SlipsStatController(ISlipsStatsRepository slipsAnalyticsService) + public SlipsStatController(ISlipsStatRepository slipsAnalyticsService) { this.slipsAnalyticsService = slipsAnalyticsService; }