public WindowsStreamSecurityUpgradeInitiator(
     WindowsStreamSecurityUpgradeProvider parent, EndpointAddress remoteAddress, Uri via)
     : base(FramingUpgradeString.Negotiate, remoteAddress, via)
 {
     _parent = parent;
     _clientTokenProvider = TransportSecurityHelpers.GetSspiTokenProvider(
         parent._securityTokenManager, remoteAddress, via, parent.Scheme, out _identityVerifier);
 }
 public WindowsStreamSecurityUpgradeAcceptor(WindowsStreamSecurityUpgradeProvider parent)
     : base(FramingUpgradeString.Negotiate)
 {
     _parent = parent;
     _clientSecurity = new SecurityMessageProperty();
 }
 public WindowsStreamSecurityUpgradeInitiator(
     WindowsStreamSecurityUpgradeProvider parent, EndpointAddress remoteAddress, Uri via)
     : base(FramingUpgradeString.Negotiate, remoteAddress, via)
 {
     _parent = parent;
     _clientTokenProvider = TransportSecurityHelpers.GetSspiTokenProvider(
         parent._securityTokenManager, remoteAddress, via, parent.Scheme, out _identityVerifier);
 }
 public WindowsStreamSecurityUpgradeAcceptor(WindowsStreamSecurityUpgradeProvider parent) : base("application/negotiate")
 {
     this.parent         = parent;
     this.clientSecurity = new SecurityMessageProperty();
 }
 public WindowsStreamSecurityUpgradeInitiator(WindowsStreamSecurityUpgradeProvider parent, EndpointAddress remoteAddress, Uri via) : base("application/negotiate", remoteAddress, via)
 {
     this.parent = parent;
     this.clientTokenProvider = TransportSecurityHelpers.GetSspiTokenProvider(parent.securityTokenManager, remoteAddress, via, parent.Scheme, out this.identityVerifier);
 }
 public OpenAsyncResult(WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator parent, TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state)
 {
     this.parent = parent;
     TimeoutHelper helper = new TimeoutHelper(timeout);
     this.onBaseOpen = Fx.ThunkCallback(new AsyncCallback(this.OnBaseOpen));
     this.onGetSspiCredential = Fx.ThunkCallback(new AsyncCallback(this.OnGetSspiCredential));
     this.onOpenTokenProvider = Fx.ThunkCallback(new AsyncCallback(this.OnOpenTokenProvider));
     IAsyncResult result = parent.BaseBeginOpen(helper.RemainingTime(), this.onBaseOpen, this);
     if (result.CompletedSynchronously && this.HandleBaseOpenComplete(result))
     {
         base.Complete(true);
     }
 }
 public WindowsStreamSecurityUpgradeAcceptor(WindowsStreamSecurityUpgradeProvider parent)
     : base(FramingUpgradeString.Negotiate)
 {
     this.parent         = parent;
     this.clientSecurity = new SecurityMessageProperty();
 }
 public InitiateUpgradeAsyncResult(WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator initiator, AsyncCallback callback, object state) : base(callback, state)
 {
     this.initiator = initiator;
 }
 public CloseAsyncResult(WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator parent, TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state)
 {
     this.parent = parent;
     this.timeoutHelper = new TimeoutHelper(timeout);
     this.onBaseClose = Fx.ThunkCallback(new AsyncCallback(this.OnBaseClose));
     this.onCloseTokenProvider = Fx.ThunkCallback(new AsyncCallback(this.OnCloseTokenProvider));
     IAsyncResult result = parent.BaseBeginClose(this.timeoutHelper.RemainingTime(), this.onBaseClose, this);
     if (result.CompletedSynchronously && this.HandleBaseCloseComplete(result))
     {
         base.Complete(true);
     }
 }
 public WindowsStreamSecurityUpgradeInitiator(WindowsStreamSecurityUpgradeProvider parent, EndpointAddress remoteAddress, Uri via) : base("application/negotiate", remoteAddress, via)
 {
     this.parent = parent;
     this.clientTokenProvider = TransportSecurityHelpers.GetSspiTokenProvider(parent.securityTokenManager, remoteAddress, via, parent.Scheme, out this.identityVerifier);
 }
 public AcceptUpgradeAsyncResult(WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeAcceptor acceptor, AsyncCallback callback, object state) : base(callback, state)
 {
     this.acceptor = acceptor;
 }
 public WindowsStreamSecurityUpgradeAcceptor(WindowsStreamSecurityUpgradeProvider parent) : base("application/negotiate")
 {
     this.parent = parent;
     this.clientSecurity = new SecurityMessageProperty();
 }