From c2f1338785ea47367589ed47d948bc047c89368a Mon Sep 17 00:00:00 2001 From: KharchenkoVV Date: Thu, 20 May 2021 14:50:00 +0500 Subject: [PATCH] =?UTF-8?q?CS2-3:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D0=B2=20=D0=B8?= =?UTF-8?q?=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=20IReportHubCl?= =?UTF-8?q?ient?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudWebApi/Controllers/ReportController.cs | 2 +- AsbCloudWebApi/SignalR/IReportHubClient.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AsbCloudWebApi/Controllers/ReportController.cs b/AsbCloudWebApi/Controllers/ReportController.cs index 68f80b6f..c7f90766 100644 --- a/AsbCloudWebApi/Controllers/ReportController.cs +++ b/AsbCloudWebApi/Controllers/ReportController.cs @@ -27,7 +27,7 @@ namespace AsbCloudWebApi.Controllers } private void HandleReportProgress (float progress, string operation, int id) => - reportsHubContext.Clients.Group($"Report{id}").SendAsync("GetReportProgress", progress); + reportsHubContext.Clients.Group($"Report{id}").SendAsync(nameof(IReportHubClient.GetReportProgress), progress); /// diff --git a/AsbCloudWebApi/SignalR/IReportHubClient.cs b/AsbCloudWebApi/SignalR/IReportHubClient.cs index a45af1fe..a756fa72 100644 --- a/AsbCloudWebApi/SignalR/IReportHubClient.cs +++ b/AsbCloudWebApi/SignalR/IReportHubClient.cs @@ -2,6 +2,6 @@ { public interface IReportHubClient { - + float GetReportProgress(); } }