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