Exemplo n.º 1
0
            protected override async Task DoHandshakeAsync(TestConnection connection)
            {
                await HandshakeUtils.ReceiveHandshakeRequestAsync(connection.Application.Input);

                await HandshakeUtils.SendHandshakeResponseAsync(connection.Application.Output,
                                                                new HandshakeResponseMessage("Handshake error."));
            }
Exemplo n.º 2
0
        /// <summary>
        /// Allow sub-class to override the handshake behavior
        /// </summary>
        protected virtual async Task DoHandshakeAsync(TestConnection connection)
        {
            await HandshakeUtils.ReceiveHandshakeRequestAsync(connection.Application.Input);

            await HandshakeUtils.SendHandshakeResponseAsync(connection.Application.Output);
        }