private Task ConnectionFactoryCallbackAsync(TestConnection connection) { ConnectionContexts.TryAdd(connection.ConnectionId, connection); // Start a process for each server connection _ = StartProcessApplicationMessagesAsync(connection); return(Task.CompletedTask); }
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); }