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
- FormsAuthenticationConfiguration.cs
- QualifiedId.cs
- XmlDataSourceView.cs
- MetaChildrenColumn.cs
- TextEncodedRawTextWriter.cs
- GroupQuery.cs
- CertificateElement.cs
- TaiwanLunisolarCalendar.cs
- AttachedPropertyMethodSelector.cs
- FacetChecker.cs
- SkipStoryboardToFill.cs
- EntityViewGenerationConstants.cs
- ChangeToolStripParentVerb.cs
- XmlArrayAttribute.cs
- FrameworkElementFactory.cs
- TextAction.cs
- ResetableIterator.cs
- CharAnimationUsingKeyFrames.cs
- BuilderElements.cs
- Cell.cs
- LinqDataSourceContextEventArgs.cs
- AdornerPresentationContext.cs
- CoTaskMemHandle.cs
- Focus.cs
- FastPropertyAccessor.cs
- DataTablePropertyDescriptor.cs
- DataGridViewRowHeaderCell.cs
- COM2Properties.cs
- InternalCache.cs
- QilParameter.cs
- CodeIdentifiers.cs
- Button.cs
- FragmentQueryProcessor.cs
- COM2AboutBoxPropertyDescriptor.cs
- DodSequenceMerge.cs
- TCEAdapterGenerator.cs
- MemberHolder.cs
- MessageHeaderException.cs
- WsdlEndpointConversionContext.cs
- TemplatedMailWebEventProvider.cs
- _HelperAsyncResults.cs
- RestHandlerFactory.cs
- RIPEMD160Managed.cs
- XmlValidatingReaderImpl.cs
- DbConnectionHelper.cs
- DefaultAsyncDataDispatcher.cs
- CodeParameterDeclarationExpression.cs
- CategoryEditor.cs
- DBConnection.cs
- RelationshipEntry.cs
- IndependentAnimationStorage.cs
- WebServiceErrorEvent.cs
- XPathMessageFilter.cs
- ISessionStateStore.cs
- MsmqTransportElement.cs
- ConcatQueryOperator.cs
- BlurBitmapEffect.cs
- FamilyTypefaceCollection.cs
- Point3D.cs
- ResourceProviderFactory.cs
- CompilerScopeManager.cs
- HttpWebRequestElement.cs
- WebPartEventArgs.cs
- ListViewTableCell.cs
- TextServicesDisplayAttributePropertyRanges.cs
- CapabilitiesSection.cs
- ConnectionManagementElementCollection.cs
- ByteStream.cs
- XmlDataSourceNodeDescriptor.cs
- BaseTemplateCodeDomTreeGenerator.cs
- NavigationWindowAutomationPeer.cs
- SmtpSection.cs
- EdmRelationshipRoleAttribute.cs
- dsa.cs
- DataReaderContainer.cs
- Maps.cs
- SettingsPropertyNotFoundException.cs
- SiteMapNode.cs
- EntityContainerAssociationSet.cs
- Setter.cs
- InfoCardUIAgent.cs
- DotExpr.cs
- HyperLinkField.cs
- ModelUIElement3D.cs
- XmlSchemaSimpleContentExtension.cs
- NetworkStream.cs
- Stacktrace.cs
- QueryInterceptorAttribute.cs
- EntityDataSourceDataSelectionPanel.cs
- Cursors.cs
- DoubleCollection.cs
- JsonSerializer.cs
- TextBlockAutomationPeer.cs
- HierarchicalDataTemplate.cs
- EventDescriptorCollection.cs
- XmlHierarchyData.cs
- LinqDataSourceUpdateEventArgs.cs
- Decorator.cs
- ScaleTransform3D.cs
- GlyphingCache.cs