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
- ConfigurationStrings.cs
- BitmapMetadata.cs
- EventLogger.cs
- LineUtil.cs
- ListViewCancelEventArgs.cs
- DataBindingExpressionBuilder.cs
- ServiceCredentialsSecurityTokenManager.cs
- QueryResultOp.cs
- MappingModelBuildProvider.cs
- ReadOnlyDataSource.cs
- XmlSchemaAppInfo.cs
- DataGrid.cs
- LabelEditEvent.cs
- WhitespaceRuleLookup.cs
- FontFamilyValueSerializer.cs
- ProbeDuplex11AsyncResult.cs
- ActivityDesignerAccessibleObject.cs
- XPathParser.cs
- BigInt.cs
- Range.cs
- DataColumnPropertyDescriptor.cs
- Parameter.cs
- ArithmeticException.cs
- ModuleBuilder.cs
- TypedRowGenerator.cs
- WebPartMovingEventArgs.cs
- XmlDesigner.cs
- AttributeCollection.cs
- PointLight.cs
- CSharpCodeProvider.cs
- XmlEnumAttribute.cs
- SqlXml.cs
- RootProfilePropertySettingsCollection.cs
- ReaderWriterLockWrapper.cs
- QuadraticEase.cs
- DocumentGridPage.cs
- ValidationHelper.cs
- InternalBufferOverflowException.cs
- TextProperties.cs
- MailSettingsSection.cs
- BufferedGraphics.cs
- NameSpaceExtractor.cs
- XmlCharCheckingWriter.cs
- RectKeyFrameCollection.cs
- FocusTracker.cs
- DataList.cs
- StreamGeometry.cs
- StreamResourceInfo.cs
- CreateUserWizard.cs
- OutOfMemoryException.cs
- XPathMessageFilterElement.cs
- TimeStampChecker.cs
- TripleDESCryptoServiceProvider.cs
- KnowledgeBase.cs
- ThreadWorkerController.cs
- EntityDataSourceReferenceGroup.cs
- DataGridViewAutoSizeModeEventArgs.cs
- JoinGraph.cs
- SystemIPInterfaceProperties.cs
- DictionaryBase.cs
- TableColumnCollection.cs
- BrowserCapabilitiesFactory.cs
- SmtpLoginAuthenticationModule.cs
- ProfileSettingsCollection.cs
- ProcessHostFactoryHelper.cs
- QuaternionConverter.cs
- DrawingVisual.cs
- ListComponentEditor.cs
- ToolStrip.cs
- WebPartsSection.cs
- InfoCardKeyedHashAlgorithm.cs
- FieldAccessException.cs
- GreaterThanOrEqual.cs
- XmlDataSourceView.cs
- HtmlInputPassword.cs
- NumberFormatInfo.cs
- FileDetails.cs
- CodeCatchClause.cs
- WindowsListViewGroup.cs
- UpdateDelegates.Generated.cs
- SchemaImporterExtensionElement.cs
- FixedSOMContainer.cs
- MetafileHeaderEmf.cs
- AppendHelper.cs
- ValidationManager.cs
- WebServiceEnumData.cs
- MobileUserControl.cs
- CapabilitiesUse.cs
- WebControlAdapter.cs
- PeerApplicationLaunchInfo.cs
- BindingNavigatorDesigner.cs
- AutomationElementIdentifiers.cs
- SecurityUniqueId.cs
- WebPartMovingEventArgs.cs
- VarRemapper.cs
- XmlReflectionImporter.cs
- CallTemplateAction.cs
- TableLayoutPanelCodeDomSerializer.cs
- OutputCacheSection.cs
- CheckBoxBaseAdapter.cs