private Task ConnectionFactoryCallbackAsync(TestConnection connection) { ConnectionContexts.TryAdd(connection.ConnectionId, connection); // Start a process for each server connection _ = StartProcessApplicationMessagesAsync(connection); return(Task.CompletedTask); }
internal UserState() { ConnectionContexts = new ConnectionContexts(); PrivateKeys = new PrivateKeys(); InstanceTags = new InstanceTags(); PendingPrivateKey = null; TimerRunning = 0; }
private async Task ConnectionFactoryCallbackAsync(TestConnection connection) { while (NewConnectionsCreationPaused) { await Task.Delay(10); } ConnectionContexts.TryAdd(connection.ConnectionId, connection); // Start a process for each server connection _ = StartProcessApplicationMessagesAsync(connection); }