Inheritance: System.ServiceModel.Channels.StreamUpgradeProvider
        protected override void OnOpened()
        {
            base.OnOpened();
            StreamSecurityUpgradeProvider security = this.Upgrade as StreamSecurityUpgradeProvider;

            if (security != null)
            {
                this.identity = security.Identity;
            }
        }
Esempio n. 2
0
            public static FramingConnectionDuplexSession CreateSession(FramingDuplexSessionChannel channel,
                                                                       StreamUpgradeProvider upgrade)
            {
                StreamSecurityUpgradeProvider security = upgrade as StreamSecurityUpgradeProvider;

                if (security == null)
                {
                    return(new FramingConnectionDuplexSession(channel));
                }

                throw ExceptionHelper.PlatformNotSupported("SecureConnectionDuplexSession is not supported.");
            }
Esempio n. 3
0
            public static FramingConnectionDuplexSession CreateSession(FramingDuplexSessionChannel channel,
                                                                       StreamUpgradeProvider upgrade)
            {
                StreamSecurityUpgradeProvider security = upgrade as StreamSecurityUpgradeProvider;

                if (security == null)
                {
                    return(new FramingConnectionDuplexSession(channel));
                }
                else
                {
                    return(new SecureConnectionDuplexSession(channel));
                }
            }