public static FramingConnectionDuplexSession CreateSession(FramingDuplexSessionChannel channel,
                                                            StreamUpgradeAcceptor upgradeAcceptor)
 {
     if (!(upgradeAcceptor is StreamSecurityUpgradeAcceptor security))
     {
         return(new FramingConnectionDuplexSession(channel));
     }
Esempio n. 2
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));
                }
            }
Esempio n. 3
0
 public SecureConnectionDuplexSession(FramingDuplexSessionChannel channel)
     : base(channel)
 {
     // empty
 }
Esempio n. 4
0
 FramingConnectionDuplexSession(FramingDuplexSessionChannel channel)
     : base(channel)
 {
 }