コード例 #1
0
ファイル: HubManager.cs プロジェクト: trustieee/ChatApp
 public async Task SendAsync(HubMessages.HubMethod hubMethod, string input) => await _hubConnection.InvokeAsync(hubMethod.GetHubMethodName(), input);
コード例 #2
0
 public static string GetHubMethodName(this HubMessages.HubMethod self) => Enum.GetName(self.GetType(), self);