Beispiel #1
0
        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));
        }
Beispiel #2
0
 private void CleanGroupResources(string groupName)
 {
     _connectionGroupStorage.Remove(groupName);
     _priceTaskStorage.Remove(groupName);
 }