public Task LeaveGroup(string crypto, string currency) { var groupName = GetKey(crypto, currency); _connectionGroupStorage.Lock(); _connectionGroupStorage.Remove(Context.ConnectionId, groupName); _connectionGroupStorage.Release(); return(base.Groups.RemoveFromGroupAsync(Context.ConnectionId, groupName)); }
private void CleanGroupResources(string groupName) { _connectionGroupStorage.Remove(groupName); _priceTaskStorage.Remove(groupName); }