protected override void OnOpen(TimeSpan timeout)
        {
            StreamUpgradeProvider upgrade = this.Upgrade;

            if (upgrade != null)
            {
                upgrade.Open(timeout);
            }
        }
Пример #2
0
        protected override void OnOpen(TimeSpan timeout)
        {
            StreamUpgradeProvider localUpgrade = Upgrade;

            if (localUpgrade != null)
            {
                localUpgrade.Open(timeout);
            }
        }
        protected override void OnOpen(TimeSpan timeout)
        {
            TimeoutHelper timeoutHelper = new TimeoutHelper(timeout);

            base.OnOpen(timeout);
            StreamUpgradeProvider localUpgrade = this.Upgrade;

            if (localUpgrade != null)
            {
                localUpgrade.Open(timeoutHelper.RemainingTime());
            }
        }