コード例 #1
0
 private Task ConnectionFactoryCallbackAsync(TestConnection connection)
 {
     ConnectionContexts.TryAdd(connection.ConnectionId, connection);
     // Start a process for each server connection
     _ = StartProcessApplicationMessagesAsync(connection);
     return(Task.CompletedTask);
 }
コード例 #2
0
ファイル: UserState.cs プロジェクト: eXcomm/otr-1
 internal UserState()
 {
     ConnectionContexts = new ConnectionContexts();
     PrivateKeys = new PrivateKeys();
     InstanceTags = new InstanceTags();
     PendingPrivateKey = null;
     TimerRunning = 0;
 }
コード例 #3
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);
 }