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
- EditCommandColumn.cs
- SplineKeyFrames.cs
- CommandValueSerializer.cs
- BackgroundFormatInfo.cs
- NodeFunctions.cs
- DockEditor.cs
- TemplateField.cs
- MissingMemberException.cs
- SerialStream.cs
- DrawingVisualDrawingContext.cs
- HttpListener.cs
- ValidatingReaderNodeData.cs
- AutomationAttributeInfo.cs
- CompositionAdorner.cs
- SqlServices.cs
- WindowsListViewSubItem.cs
- HostedHttpContext.cs
- DigitShape.cs
- ProxyHelper.cs
- CompressedStack.cs
- ListViewGroup.cs
- HtmlTableCellCollection.cs
- FormattedTextSymbols.cs
- SQLDoubleStorage.cs
- ChineseLunisolarCalendar.cs
- ToolStripLocationCancelEventArgs.cs
- DecimalStorage.cs
- DeviceFiltersSection.cs
- ColorConvertedBitmap.cs
- OSFeature.cs
- SharedPersonalizationStateInfo.cs
- DataGrid.cs
- XmlDocumentSerializer.cs
- FontSource.cs
- VariableQuery.cs
- ZoneIdentityPermission.cs
- DtrList.cs
- DeferredElementTreeState.cs
- MetadataArtifactLoaderResource.cs
- ExpressionStringBuilder.cs
- DataMisalignedException.cs
- MetabaseServerConfig.cs
- Int64.cs
- ConstraintStruct.cs
- DebuggerAttributes.cs
- LocationSectionRecord.cs
- WebPartMinimizeVerb.cs
- TabControl.cs
- ConfigDefinitionUpdates.cs
- RootNamespaceAttribute.cs
- TextRangeEditLists.cs
- dataSvcMapFileLoader.cs
- XmlElement.cs
- ActivityInterfaces.cs
- DataControlHelper.cs
- EncryptedPackageFilter.cs
- XamlParser.cs
- Int64KeyFrameCollection.cs
- XPathCompileException.cs
- IEnumerable.cs
- SQLBinary.cs
- LogicalExpr.cs
- HttpCookieCollection.cs
- TableAutomationPeer.cs
- UIElement3DAutomationPeer.cs
- DataConnectionHelper.cs
- coordinatorfactory.cs
- Brush.cs
- Object.cs
- PipelineDeploymentState.cs
- BaseAddressElementCollection.cs
- MemberHolder.cs
- StreamWriter.cs
- RuntimeCompatibilityAttribute.cs
- ObjectToIdCache.cs
- AssemblyCollection.cs
- XmlCompatibilityReader.cs
- SQLGuid.cs
- SerializationUtility.cs
- TailCallAnalyzer.cs
- XmlSerializerSection.cs
- DummyDataSource.cs
- CodeTypeMemberCollection.cs
- HttpTransportManager.cs
- SmiMetaDataProperty.cs
- XmlSerializationReader.cs
- SizeIndependentAnimationStorage.cs
- ProfileParameter.cs
- DirectoryInfo.cs
- GrammarBuilderWildcard.cs
- ListViewDeletedEventArgs.cs
- SkipQueryOptionExpression.cs
- ScrollChrome.cs
- TreeNodeCollection.cs
- ListMarkerSourceInfo.cs
- HeaderFilter.cs
- Point3DKeyFrameCollection.cs
- NavigatorOutput.cs
- Vector3DCollectionConverter.cs
- PreviewPageInfo.cs