コード例 #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."));
            }
コード例 #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);
        }