Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / AddressingVersion.cs / 1 / AddressingVersion.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Runtime.Serialization; using System.Xml; using System.ServiceModel.Security; public sealed class AddressingVersion { string ns; XmlDictionaryString dictionaryNs; MessagePartSpecification signedMessageParts; string toStringFormat; string anonymous; XmlDictionaryString dictionaryAnonymous; Uri anonymousUri; Uri noneUri; string faultAction; string defaultFaultAction; static AddressingVersion none = new AddressingVersion(AddressingNoneStrings.Namespace, XD.AddressingNoneDictionary.Namespace, SR.AddressingNoneToStringFormat, new MessagePartSpecification(), null, null, null, null, null); static AddressingVersion addressing10 = new AddressingVersion(Addressing10Strings.Namespace, XD.Addressing10Dictionary.Namespace, SR.Addressing10ToStringFormat, Addressing10SignedMessageParts, Addressing10Strings.Anonymous, XD.Addressing10Dictionary.Anonymous, Addressing10Strings.NoneAddress, Addressing10Strings.FaultAction, Addressing10Strings.DefaultFaultAction); static MessagePartSpecification addressing10SignedMessageParts; static AddressingVersion addressing200408 = new AddressingVersion(Addressing200408Strings.Namespace, XD.Addressing200408Dictionary.Namespace, SR.Addressing200408ToStringFormat, Addressing200408SignedMessageParts, Addressing200408Strings.Anonymous, XD.Addressing200408Dictionary.Anonymous, null, Addressing200408Strings.FaultAction, Addressing200408Strings.DefaultFaultAction); static MessagePartSpecification addressing200408SignedMessageParts; AddressingVersion(string ns, XmlDictionaryString dictionaryNs, string toStringFormat, MessagePartSpecification signedMessageParts, string anonymous, XmlDictionaryString dictionaryAnonymous, string none, string faultAction, string defaultFaultAction) { this.ns = ns; this.dictionaryNs = dictionaryNs; this.toStringFormat = toStringFormat; this.signedMessageParts = signedMessageParts; this.anonymous = anonymous; this.dictionaryAnonymous = dictionaryAnonymous; if (anonymous != null) { this.anonymousUri = new Uri(anonymous); } if (none != null) { this.noneUri = new Uri(none); } this.faultAction = faultAction; this.defaultFaultAction = defaultFaultAction; } public static AddressingVersion WSAddressingAugust2004 { get { return addressing200408; } } public static AddressingVersion WSAddressing10 { get { return addressing10; } } public static AddressingVersion None { get { return none; } } internal string Namespace { get { return ns; } } static MessagePartSpecification Addressing10SignedMessageParts { get { if (addressing10SignedMessageParts == null) { MessagePartSpecification s = new MessagePartSpecification( new XmlQualifiedName(AddressingStrings.To, Addressing10Strings.Namespace), new XmlQualifiedName(AddressingStrings.From, Addressing10Strings.Namespace), new XmlQualifiedName(AddressingStrings.FaultTo, Addressing10Strings.Namespace), new XmlQualifiedName(AddressingStrings.ReplyTo, Addressing10Strings.Namespace), new XmlQualifiedName(AddressingStrings.MessageId, Addressing10Strings.Namespace), new XmlQualifiedName(AddressingStrings.RelatesTo, Addressing10Strings.Namespace), new XmlQualifiedName(AddressingStrings.Action, Addressing10Strings.Namespace) ); s.MakeReadOnly(); addressing10SignedMessageParts = s; } return addressing10SignedMessageParts; } } static MessagePartSpecification Addressing200408SignedMessageParts { get { if (addressing200408SignedMessageParts == null) { MessagePartSpecification s = new MessagePartSpecification( new XmlQualifiedName(AddressingStrings.To, Addressing200408Strings.Namespace), new XmlQualifiedName(AddressingStrings.From, Addressing200408Strings.Namespace), new XmlQualifiedName(AddressingStrings.FaultTo, Addressing200408Strings.Namespace), new XmlQualifiedName(AddressingStrings.ReplyTo, Addressing200408Strings.Namespace), new XmlQualifiedName(AddressingStrings.MessageId, Addressing200408Strings.Namespace), new XmlQualifiedName(AddressingStrings.RelatesTo, Addressing200408Strings.Namespace), new XmlQualifiedName(AddressingStrings.Action, Addressing200408Strings.Namespace) ); s.MakeReadOnly(); addressing200408SignedMessageParts = s; } return addressing200408SignedMessageParts; } } internal XmlDictionaryString DictionaryNamespace { get { return dictionaryNs; } } internal string Anonymous { get { return anonymous; } } internal XmlDictionaryString DictionaryAnonymous { get { return dictionaryAnonymous; } } internal Uri AnonymousUri { get { return anonymousUri; } } internal Uri NoneUri { get { return noneUri; } } internal string FaultAction // the action for addressing faults { get { return faultAction; } } internal string DefaultFaultAction // a default string that can be used for non-addressing faults { get { return defaultFaultAction; } } internal MessagePartSpecification SignedMessageParts { get { return this.signedMessageParts; } } public override string ToString() { return SR.GetString(toStringFormat, Namespace); } } } // 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
- SqlOuterApplyReducer.cs
- InternalBufferManager.cs
- CountdownEvent.cs
- InstanceStoreQueryResult.cs
- SolidColorBrush.cs
- util.cs
- TextParagraph.cs
- InitializerFacet.cs
- FunctionGenerator.cs
- BamlReader.cs
- UpdateCommand.cs
- NamespaceCollection.cs
- VisualTarget.cs
- TypeUsageBuilder.cs
- LocalizationParserHooks.cs
- ContextStaticAttribute.cs
- GeometryConverter.cs
- DiscoveryUtility.cs
- InvalidOleVariantTypeException.cs
- SqlMultiplexer.cs
- ConfigurationSectionGroupCollection.cs
- _OverlappedAsyncResult.cs
- DataGridPageChangedEventArgs.cs
- DataServiceEntityAttribute.cs
- ToolStripPanel.cs
- ContainerVisual.cs
- Zone.cs
- FormsAuthenticationModule.cs
- DbConnectionOptions.cs
- AQNBuilder.cs
- BezierSegment.cs
- DesignerForm.cs
- WindowProviderWrapper.cs
- BindUriHelper.cs
- Privilege.cs
- GeometryHitTestResult.cs
- MediaSystem.cs
- UniformGrid.cs
- WebPartManagerInternals.cs
- SimpleFileLog.cs
- ExpressionBuilder.cs
- NetTcpBindingCollectionElement.cs
- DurationConverter.cs
- WhitespaceRuleLookup.cs
- DataSet.cs
- ConfigurationErrorsException.cs
- DataObject.cs
- MergeFilterQuery.cs
- ClientSection.cs
- DateTimeOffsetStorage.cs
- ScrollPatternIdentifiers.cs
- XmlSecureResolver.cs
- NetWebProxyFinder.cs
- XmlSchemaCollection.cs
- EntityDataSourceChangingEventArgs.cs
- FormatterConverter.cs
- LicenseProviderAttribute.cs
- _NegotiateClient.cs
- AccessDataSourceView.cs
- Annotation.cs
- DuplexClientBase.cs
- DesignerMetadata.cs
- CollectionBuilder.cs
- PngBitmapDecoder.cs
- streamingZipPartStream.cs
- GPPOINT.cs
- loginstatus.cs
- QueuePathDialog.cs
- LifetimeServices.cs
- BuildResult.cs
- WindowsStatic.cs
- FormsAuthenticationUser.cs
- WebPartConnectionsConnectVerb.cs
- DataGridItem.cs
- XmlConvert.cs
- __Error.cs
- HashCodeCombiner.cs
- TextDecorationUnitValidation.cs
- SeekStoryboard.cs
- PeerNodeTraceRecord.cs
- TraceContext.cs
- TransformCryptoHandle.cs
- XmlSchemaAttributeGroup.cs
- TreeNodeConverter.cs
- RequestNavigateEventArgs.cs
- WeakEventTable.cs
- ObjectDataSourceFilteringEventArgs.cs
- ServiceManagerHandle.cs
- ToolStripArrowRenderEventArgs.cs
- AsnEncodedData.cs
- RoleManagerEventArgs.cs
- HMACSHA256.cs
- ContextMarshalException.cs
- DaylightTime.cs
- securitycriticaldataformultiplegetandset.cs
- ObjectListSelectEventArgs.cs
- DecimalConverter.cs
- SEHException.cs
- keycontainerpermission.cs
- CmsInterop.cs