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