Exemplo n.º 1
0
        public override async Task OnConnectedAsync()
        {
            //Temp
            string userId = Guid.NewGuid().ToString();
            await _connectionStore.StoreConnectionAsync(Context.ConnectionId, userId);

            _logger.LogInformation($"Yay connected. ConnectionId: {Context.ConnectionId} is associated to userId: {userId}");

            return;
        }
Exemplo n.º 2
0
        public async void CanStoreConnectionAsync()
        {
            await _connectionStore.StoreConnectionAsync(connectionIdA, userIdA);

            Assert.NotNull(_connectionStore.GetClient(connectionIdA));
        }