Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / MessageEncodingBindingElement.cs / 1 / MessageEncodingBindingElement.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Collections.Generic; using System.ServiceModel.Description; using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Diagnostics; using System.Xml; public abstract class MessageEncodingBindingElement : BindingElement { protected MessageEncodingBindingElement() { } protected MessageEncodingBindingElement(MessageEncodingBindingElement elementToBeCloned) : base(elementToBeCloned) { } public abstract MessageVersion MessageVersion { get; set; } internal IChannelFactoryInternalBuildChannelFactory (BindingContext context) { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("context")); } #pragma warning suppress 56506 // [....], BindingContext.BindingParameters never be null context.BindingParameters.Add(this); return context.BuildInnerChannelFactory (); } internal bool InternalCanBuildChannelFactory (BindingContext context) { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("context")); } #pragma warning suppress 56506 // [....], BindingContext.BindingParameters never be null context.BindingParameters.Add(this); return context.CanBuildInnerChannelFactory (); } internal IChannelListener InternalBuildChannelListener (BindingContext context) where TChannel : class, IChannel { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("context")); } #pragma warning suppress 56506 // [....], BindingContext.BindingParameters never be null context.BindingParameters.Add(this); return context.BuildInnerChannelListener (); } internal bool InternalCanBuildChannelListener (BindingContext context) where TChannel : class, IChannel { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("context")); } #pragma warning suppress 56506 // [....], BindingContext.BindingParameters never be null context.BindingParameters.Add(this); return context.CanBuildInnerChannelListener (); } public abstract MessageEncoderFactory CreateMessageEncoderFactory(); public override T GetProperty (BindingContext context) { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); } if (typeof(T) == typeof(MessageVersion)) { return (T)(object)this.MessageVersion; } else { return context.GetInnerProperty (); } } internal virtual bool CheckEncodingVersion(EnvelopeVersion version) { return false; } internal override bool IsMatch(BindingElement b) { if (b == null) return false; MessageEncodingBindingElement encoding = b as MessageEncodingBindingElement; if (encoding == null) return false; return true; } } } // 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
- ListViewTableCell.cs
- AttachmentCollection.cs
- ControlTemplate.cs
- CustomSignedXml.cs
- BackgroundWorker.cs
- InternalBufferOverflowException.cs
- DebuggerService.cs
- DetailsViewAutoFormat.cs
- StylusTip.cs
- OperationCanceledException.cs
- DataGridViewCellValueEventArgs.cs
- NumericExpr.cs
- RootCodeDomSerializer.cs
- ToolStripItemClickedEventArgs.cs
- Label.cs
- DependencyPropertyKey.cs
- SharedUtils.cs
- ListMarkerLine.cs
- EngineSiteSapi.cs
- InternalControlCollection.cs
- Soap.cs
- MatrixAnimationUsingPath.cs
- HttpClientCertificate.cs
- DragDrop.cs
- ITreeGenerator.cs
- WorkflowMarkupSerializer.cs
- TextCompositionManager.cs
- RegexCode.cs
- AssemblyInfo.cs
- ApplicationManager.cs
- VersionConverter.cs
- ContextStaticAttribute.cs
- RSAPKCS1SignatureDeformatter.cs
- ParamArrayAttribute.cs
- ConnectionPoolManager.cs
- mediaclock.cs
- LabelEditEvent.cs
- Label.cs
- DeflateStream.cs
- PageThemeBuildProvider.cs
- InstalledFontCollection.cs
- MulticastIPAddressInformationCollection.cs
- SequentialWorkflowRootDesigner.cs
- ColumnReorderedEventArgs.cs
- DoubleConverter.cs
- CdpEqualityComparer.cs
- OdbcDataReader.cs
- ParseElement.cs
- XmlParserContext.cs
- ActivityBindForm.Designer.cs
- OracleParameterCollection.cs
- ConstraintStruct.cs
- ViewCellRelation.cs
- Floater.cs
- XPathNavigatorException.cs
- DataGridViewLinkCell.cs
- DecoderFallback.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- ReflectTypeDescriptionProvider.cs
- TranslateTransform.cs
- NTAccount.cs
- SimpleHandlerBuildProvider.cs
- DelayDesigner.cs
- XamlFxTrace.cs
- ListViewGroupCollectionEditor.cs
- XmlILConstructAnalyzer.cs
- SqlVersion.cs
- RepeatBehaviorConverter.cs
- InputQueueChannelAcceptor.cs
- HtmlTableRow.cs
- ListParagraph.cs
- AstNode.cs
- IPGlobalProperties.cs
- SafeNativeMethods.cs
- OrderedHashRepartitionStream.cs
- SqlFunctions.cs
- CurrencyManager.cs
- ScriptReferenceEventArgs.cs
- ExtensionSurface.cs
- MetadataArtifactLoaderCompositeResource.cs
- TypeTypeConverter.cs
- storagemappingitemcollection.viewdictionary.cs
- ProfileInfo.cs
- OneOfScalarConst.cs
- StorageSetMapping.cs
- FastPropertyAccessor.cs
- XmlNamedNodeMap.cs
- BitmapMetadataBlob.cs
- ByeOperationCD1AsyncResult.cs
- FormViewInsertEventArgs.cs
- UnionExpr.cs
- Scene3D.cs
- CharacterHit.cs
- SQLDoubleStorage.cs
- Literal.cs
- ToolStripRenderEventArgs.cs
- TextParaLineResult.cs
- FramingChannels.cs
- AppDomainAttributes.cs
- ContextItem.cs