Beispiel #1
0
 public async Task SendAsync(HubMessages.HubMethod hubMethod, string input) => await _hubConnection.InvokeAsync(hubMethod.GetHubMethodName(), input);
 public static string GetHubMethodName(this HubMessages.HubMethod self) => Enum.GetName(self.GetType(), self);