Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / ReliableMessagingVersion.cs / 1 / ReliableMessagingVersion.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.Xml; public abstract class ReliableMessagingVersion { XmlDictionaryString dictionaryNs; string ns; // Do not initialize directly, this constructor is for derived classes. internal ReliableMessagingVersion(string ns, XmlDictionaryString dictionaryNs) { this.ns = ns; this.dictionaryNs = dictionaryNs; } public static ReliableMessagingVersion Default { get { return System.ServiceModel.Channels.ReliableSessionDefaults.ReliableMessagingVersion; } } public static ReliableMessagingVersion WSReliableMessaging11 { get { return WSReliableMessaging11Version.Instance; } } public static ReliableMessagingVersion WSReliableMessagingFebruary2005 { get { return WSReliableMessagingFebruary2005Version.Instance; } } internal XmlDictionaryString DictionaryNamespace { get { return this.dictionaryNs; } } internal string Namespace { get { return this.ns; } } internal static bool IsDefined(ReliableMessagingVersion reliableMessagingVersion) { return (reliableMessagingVersion == WSReliableMessaging11) || (reliableMessagingVersion == WSReliableMessagingFebruary2005); } } class WSReliableMessaging11Version : ReliableMessagingVersion { static ReliableMessagingVersion instance = new WSReliableMessaging11Version(); WSReliableMessaging11Version() : base(Wsrm11Strings.Namespace, DXD.Wsrm11Dictionary.Namespace) { } internal static ReliableMessagingVersion Instance { get { return instance; } } public override string ToString() { return "WSReliableMessaging11"; } } class WSReliableMessagingFebruary2005Version : ReliableMessagingVersion { WSReliableMessagingFebruary2005Version() : base(WsrmFeb2005Strings.Namespace, XD.WsrmFeb2005Dictionary.Namespace) { } static ReliableMessagingVersion instance = new WSReliableMessagingFebruary2005Version(); internal static ReliableMessagingVersion Instance { get { return instance; } } public override string ToString() { return "WSReliableMessagingFebruary2005"; } } } // 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
- ReachVisualSerializer.cs
- DataGridViewIntLinkedList.cs
- IisTraceWebEventProvider.cs
- KeysConverter.cs
- ObjectConverter.cs
- MetadataPropertyAttribute.cs
- ErasingStroke.cs
- XamlStyleSerializer.cs
- DuplicateDetector.cs
- UnsupportedPolicyOptionsException.cs
- BasicHttpBindingCollectionElement.cs
- RuntimeEnvironment.cs
- NotCondition.cs
- XsltLibrary.cs
- CommandExpr.cs
- XmlDocumentViewSchema.cs
- ProcessModuleDesigner.cs
- SqlMethods.cs
- webeventbuffer.cs
- SqlConnectionStringBuilder.cs
- Deflater.cs
- WorkflowDurableInstance.cs
- CodeTypeConstructor.cs
- DateTime.cs
- OledbConnectionStringbuilder.cs
- StatusBarItem.cs
- Shape.cs
- QilScopedVisitor.cs
- WebPartsSection.cs
- WebDisplayNameAttribute.cs
- UIPropertyMetadata.cs
- TitleStyle.cs
- LinqMaximalSubtreeNominator.cs
- SmtpReplyReader.cs
- GenericWebPart.cs
- RadioButton.cs
- RegexFCD.cs
- GroupBoxAutomationPeer.cs
- HtmlInputText.cs
- OdbcError.cs
- PartialTrustVisibleAssemblyCollection.cs
- Perspective.cs
- BinaryNode.cs
- Win32Exception.cs
- EventDescriptor.cs
- IncomingWebRequestContext.cs
- UIElementParaClient.cs
- TreeBuilderXamlTranslator.cs
- TabOrder.cs
- ValidatorAttribute.cs
- HashUtility.cs
- ErrorFormatter.cs
- SerializationStore.cs
- TransformerConfigurationWizardBase.cs
- StreamGeometry.cs
- AuthenticatedStream.cs
- TextLine.cs
- EdmMember.cs
- SqlRemoveConstantOrderBy.cs
- StringCollection.cs
- TimeSpanValidatorAttribute.cs
- ContextBase.cs
- SafeArrayRankMismatchException.cs
- X509SecurityTokenAuthenticator.cs
- AvTrace.cs
- ObjectIDGenerator.cs
- EventLogEntryCollection.cs
- DbFunctionCommandTree.cs
- httpapplicationstate.cs
- ApplicationActivator.cs
- FixedSOMGroup.cs
- _AutoWebProxyScriptHelper.cs
- ConnectionStringsExpressionBuilder.cs
- Inline.cs
- IDispatchConstantAttribute.cs
- input.cs
- UnsafeNativeMethods.cs
- SimpleMailWebEventProvider.cs
- KnownBoxes.cs
- SQLInt32Storage.cs
- SymmetricKeyWrap.cs
- ExpanderAutomationPeer.cs
- SmtpLoginAuthenticationModule.cs
- ProcessHostServerConfig.cs
- PostBackOptions.cs
- SapiGrammar.cs
- CompositeCollection.cs
- TableDetailsRow.cs
- HiddenFieldPageStatePersister.cs
- ZipIOBlockManager.cs
- GregorianCalendar.cs
- TransportElement.cs
- InputLanguage.cs
- CompoundFileStorageReference.cs
- SecurityTokenSerializer.cs
- EventEntry.cs
- HTMLTextWriter.cs
- ComAdminWrapper.cs
- AppSettingsExpressionBuilder.cs
- EncodingStreamWrapper.cs