コード例 #1
0
            public static FramingConnectionDuplexSession CreateSession(FramingDuplexSessionChannel channel,
                                                                       StreamUpgradeAcceptor upgradeAcceptor)
            {
                StreamSecurityUpgradeAcceptor security = upgradeAcceptor as StreamSecurityUpgradeAcceptor;

                if (security == null)
                {
                    return(new FramingConnectionDuplexSession(channel));
                }
                else
                {
                    return(new SecureConnectionDuplexSession(channel));
                }
            }
コード例 #2
0
 public SecureConnectionDuplexSession(FramingDuplexSessionChannel channel)
     : base(channel)
 {
     // empty
 }
コード例 #3
0
 FramingConnectionDuplexSession(FramingDuplexSessionChannel channel)
     : base(channel)
 {
 }