Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / BindingElement.cs / 1 / BindingElement.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { using System.Runtime.Serialization; using System.ServiceModel; using System.ServiceModel.Diagnostics; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.ComponentModel; public abstract class BindingElement { protected BindingElement() { } protected BindingElement(BindingElement elementToBeCloned) { } public abstract BindingElement Clone(); public virtual IChannelFactoryBuildChannelFactory (BindingContext context) { if (context == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); return context.BuildInnerChannelFactory (); } public virtual IChannelListener BuildChannelListener (BindingContext context) where TChannel : class, IChannel { if (context == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); return context.BuildInnerChannelListener (); } public virtual bool CanBuildChannelFactory (BindingContext context) { if (context == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); return context.CanBuildInnerChannelFactory (); } public virtual bool CanBuildChannelListener (BindingContext context) where TChannel : class, IChannel { if (context == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context"); return context.CanBuildInnerChannelListener (); } public abstract T GetProperty (BindingContext context) where T : class; internal T GetIndividualProperty () where T : class { return this.GetProperty (new BindingContext(new CustomBinding(), new BindingParameterCollection())); } internal virtual bool IsMatch(BindingElement b) { DiagnosticUtility.DebugAssert(true, "Should not be called unless this binding element is used in one of the standard bindings. In which case, please re-implement the IsMatch() method."); return false; } } } // 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
- TemplateInstanceAttribute.cs
- ViewStateModeByIdAttribute.cs
- ColorBlend.cs
- WebPart.cs
- RuleSetDialog.Designer.cs
- SqlProviderServices.cs
- SafeWaitHandle.cs
- FeatureSupport.cs
- DropShadowEffect.cs
- ClipboardData.cs
- KeyValueConfigurationCollection.cs
- SimpleTextLine.cs
- StandardTransformFactory.cs
- DoubleConverter.cs
- XmlDocumentSerializer.cs
- MapPathBasedVirtualPathProvider.cs
- PropertyChangeTracker.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ControlPaint.cs
- LinkLabel.cs
- InstanceData.cs
- Selection.cs
- Internal.cs
- TreeIterator.cs
- Config.cs
- BitmapEffectDrawingContent.cs
- ProfileServiceManager.cs
- UnsafeNativeMethods.cs
- QueryStringHandler.cs
- ByteAnimationUsingKeyFrames.cs
- FunctionNode.cs
- userdatakeys.cs
- ByteStack.cs
- CodeSnippetCompileUnit.cs
- FilterQuery.cs
- CultureTable.cs
- ToolStripItemImageRenderEventArgs.cs
- Stacktrace.cs
- ReferenceSchema.cs
- DataBoundControlHelper.cs
- HttpEncoderUtility.cs
- HttpModuleCollection.cs
- HtmlString.cs
- SQLGuid.cs
- ResolveCompletedEventArgs.cs
- Process.cs
- Label.cs
- CompiledQuery.cs
- DataGridViewCellStyleConverter.cs
- HttpModuleAction.cs
- KeyFrames.cs
- EventManager.cs
- MatrixValueSerializer.cs
- WindowsSpinner.cs
- ViewRendering.cs
- BamlWriter.cs
- WebDescriptionAttribute.cs
- ProtocolsConfigurationHandler.cs
- CustomErrorsSection.cs
- Timer.cs
- ServerType.cs
- ToolStripItemTextRenderEventArgs.cs
- ResourceProviderFactory.cs
- Vector3dCollection.cs
- EventLogSession.cs
- ProfileWorkflowElement.cs
- XdrBuilder.cs
- DetailsViewRow.cs
- SwitchDesigner.xaml.cs
- SocketElement.cs
- OciLobLocator.cs
- MobileErrorInfo.cs
- Select.cs
- PenThreadPool.cs
- ContentValidator.cs
- EventMappingSettings.cs
- SafePipeHandle.cs
- ImageAnimator.cs
- ChannelSinkStacks.cs
- Cursor.cs
- MaskInputRejectedEventArgs.cs
- DefaultWorkflowTransactionService.cs
- HtmlButton.cs
- CodeMemberMethod.cs
- precedingsibling.cs
- DelegateArgument.cs
- UTF8Encoding.cs
- sitestring.cs
- CapabilitiesRule.cs
- SafePEFileHandle.cs
- TransactionScopeDesigner.cs
- BaseParser.cs
- Color.cs
- XamlVector3DCollectionSerializer.cs
- BindingList.cs
- NamedPipeActivation.cs
- KeyInterop.cs
- BindingSource.cs
- BulletedList.cs
- WebMessageBodyStyleHelper.cs