protected override async Task DoHandshakeAsync(TestConnection connection)
            {
                await HandshakeUtils.ReceiveHandshakeRequestAsync(connection.Application.Input);

                await HandshakeUtils.SendHandshakeResponseAsync(connection.Application.Output,
                                                                new HandshakeResponseMessage("Handshake error."));
            }
Esempio 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);
        }