public async Task PublishAsync(string connectionId, BaseMethod method)
 {
     await _hubContext
     .Clients
     .Client(connectionId)
     .SendCoreAsync(method.GetName(), method.GetArgs());
 }
 public async Task PublishAsync(BaseSubscription subscription, BaseMethod method)
 {
     await _hubContext
     .Clients
     .Group(subscription.GetSubscriptionString())
     .SendCoreAsync(method.GetName(), method.GetArgs());
 }