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