Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / IssuanceTokenProviderState.cs / 1 / IssuanceTokenProviderState.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { using System.IdentityModel.Claims; using System.IdentityModel.Tokens; using System.ServiceModel; using System.IdentityModel.Policy; using System.Security.Principal; using System.Security.Cryptography.X509Certificates; using System.Collections.Generic; using System.ServiceModel.Channels; using System.ServiceModel.Security.Tokens; using System.Net; using System.Diagnostics; class IssuanceTokenProviderState : IDisposable { bool isNegotiationCompleted = false; GenericXmlSecurityToken serviceToken; string context; EndpointAddress targetAddress; EndpointAddress remoteAddress; public IssuanceTokenProviderState() { } public bool IsNegotiationCompleted { get { return this.isNegotiationCompleted; } } public GenericXmlSecurityToken ServiceToken { get { CheckCompleted(); return this.serviceToken; } } public EndpointAddress TargetAddress { get { return this.targetAddress; } set { this.targetAddress = value; } } public EndpointAddress RemoteAddress { get { return this.remoteAddress; } set { this.remoteAddress = value; } } public string Context { get { return this.context; } set { this.context = value; } } public virtual void Dispose() { } public void SetServiceToken(GenericXmlSecurityToken serviceToken) { if (this.IsNegotiationCompleted) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NegotiationIsCompleted))); } this.serviceToken = serviceToken; this.isNegotiationCompleted = true; } void CheckCompleted() { if (!this.IsNegotiationCompleted) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.NegotiationIsNotCompleted))); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLInt32Storage.cs
- OrderByQueryOptionExpression.cs
- COM2PictureConverter.cs
- RoleManagerModule.cs
- ExcCanonicalXml.cs
- CallbackHandler.cs
- XPathEmptyIterator.cs
- EnumerableCollectionView.cs
- TcpTransportManager.cs
- Style.cs
- SqlParameterizer.cs
- StateValidator.cs
- _ContextAwareResult.cs
- StaticDataManager.cs
- ProviderSettingsCollection.cs
- SemaphoreSecurity.cs
- _OverlappedAsyncResult.cs
- Connector.cs
- UpdateException.cs
- ByteConverter.cs
- MenuItemStyle.cs
- BindingExpression.cs
- ErrorFormatter.cs
- Popup.cs
- ComponentDispatcherThread.cs
- FileLogRecordHeader.cs
- ASCIIEncoding.cs
- RuntimeEnvironment.cs
- DataComponentNameHandler.cs
- RandomNumberGenerator.cs
- Point3DIndependentAnimationStorage.cs
- XmlChildNodes.cs
- HebrewCalendar.cs
- parserscommon.cs
- XmlDictionaryReaderQuotas.cs
- UnsafeNativeMethods.cs
- BaseTemplateBuildProvider.cs
- Condition.cs
- StateChangeEvent.cs
- OdbcTransaction.cs
- UIElement3DAutomationPeer.cs
- VirtualDirectoryMappingCollection.cs
- DataSvcMapFile.cs
- NumericUpDown.cs
- DefaultProxySection.cs
- XsltCompileContext.cs
- SingleAnimationBase.cs
- ProcessInfo.cs
- RegexBoyerMoore.cs
- DataGridViewRow.cs
- RayHitTestParameters.cs
- ReplacementText.cs
- WindowPattern.cs
- TextDecorationCollection.cs
- Matrix.cs
- LocationChangedEventArgs.cs
- documentsequencetextview.cs
- EntryPointNotFoundException.cs
- FocusWithinProperty.cs
- ExpressionServices.cs
- SpellerInterop.cs
- FrameworkPropertyMetadata.cs
- EditorBrowsableAttribute.cs
- ClientConfigPaths.cs
- GuidTagList.cs
- TableLayoutCellPaintEventArgs.cs
- PersistenceProvider.cs
- PortCache.cs
- CustomAttribute.cs
- HeaderUtility.cs
- ReflectionUtil.cs
- formatter.cs
- RequestCacheEntry.cs
- XamlTreeBuilderBamlRecordWriter.cs
- LinearGradientBrush.cs
- PlainXmlWriter.cs
- UIElementCollection.cs
- Event.cs
- PrintDocument.cs
- MessagePropertyAttribute.cs
- Dump.cs
- CrossSiteScriptingValidation.cs
- InputLangChangeRequestEvent.cs
- BaseCodeDomTreeGenerator.cs
- ObjectTypeMapping.cs
- Converter.cs
- DataMemberListEditor.cs
- TextEndOfParagraph.cs
- SimpleTypesSurrogate.cs
- OutputCacheProfile.cs
- fixedPageContentExtractor.cs
- XsdCachingReader.cs
- XsltQilFactory.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- CachedTypeface.cs
- BuiltInPermissionSets.cs
- BindingExpressionBase.cs
- XPathEmptyIterator.cs
- VectorCollection.cs
- _DynamicWinsockMethods.cs