예제 #1
0
        internal static async Task Handshake(ClientConnection connection, TestLoggerBackend logger, Handshake handshake, CancellationToken cancellationToken)
        {
            Connection.Debug("Client Handshake: {0}", handshake);

            handshake.EventSink = new EventSinkServant(connection, logger);

            var handshakeCommand = new HandshakeCommand();
            await handshakeCommand.Send(connection, handshake, cancellationToken);

            cancellationToken.ThrowIfCancellationRequested();

            Connection.Debug("Client Handshake done");
        }
예제 #2
0
 public EventSinkServant(ClientConnection connection, TestLoggerBackend logger)
     : base(connection)
 {
     Logger = logger;
 }