コード例 #1
0
ファイル: Session.cs プロジェクト: eigenvector11/TestClient
        private void SetupNegotiation()
        {
            var featureNegotiation = new FeatureNegotiationHandler(this);

            featureNegotiation.OnAuthenticated += packet =>
            {
                Stream.Restart();
                return packet;
            };

            featureNegotiation.OnResourceBinding += packet =>
            {
                var disco = new Disco(this);
                disco.Discover();
                return packet;
            };

            featureNegotiation.RegisterForNegotiation();
        }