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
- WindowsGraphics2.cs
- Effect.cs
- UnknownWrapper.cs
- CompoundFileDeflateTransform.cs
- DBSqlParser.cs
- StorageComplexPropertyMapping.cs
- XdrBuilder.cs
- XmlSiteMapProvider.cs
- PreviewPrintController.cs
- HMACSHA512.cs
- RemoteWebConfigurationHostServer.cs
- WebPartMinimizeVerb.cs
- path.cs
- FileReader.cs
- FileDetails.cs
- CachedFontFace.cs
- TextServicesCompartmentEventSink.cs
- WindowsImpersonationContext.cs
- TreeBuilder.cs
- ActivityExecutionContext.cs
- RouteItem.cs
- LineBreak.cs
- ObjectDataSourceDisposingEventArgs.cs
- TreeViewImageKeyConverter.cs
- TextPenaltyModule.cs
- OleStrCAMarshaler.cs
- BinaryParser.cs
- TemplateControl.cs
- UICuesEvent.cs
- Substitution.cs
- XmlElementAttributes.cs
- ControlBindingsConverter.cs
- DataRowChangeEvent.cs
- MTConfigUtil.cs
- RepeaterDataBoundAdapter.cs
- FilterElement.cs
- AutomationElement.cs
- CreateBookmarkScope.cs
- PersistenceException.cs
- SkinIDTypeConverter.cs
- ResXDataNode.cs
- AppDomainAttributes.cs
- DynamicDataResources.Designer.cs
- DirectoryInfo.cs
- CheckPair.cs
- MatrixStack.cs
- FillRuleValidation.cs
- PageAdapter.cs
- OleDbReferenceCollection.cs
- BaseCollection.cs
- CodeAttributeArgument.cs
- ExeContext.cs
- CompiledIdentityConstraint.cs
- Repeater.cs
- EncryptedReference.cs
- ExpressionEditorAttribute.cs
- ContractMapping.cs
- TextPattern.cs
- Button.cs
- AnimationLayer.cs
- Odbc32.cs
- SecurityState.cs
- CachedFontFamily.cs
- TraceFilter.cs
- MailDefinition.cs
- LogLogRecordEnumerator.cs
- PrePrepareMethodAttribute.cs
- MultiSelectRootGridEntry.cs
- FormsAuthenticationTicket.cs
- MetafileHeader.cs
- ListSourceHelper.cs
- safex509handles.cs
- PackageProperties.cs
- CancelEventArgs.cs
- CodeAttachEventStatement.cs
- CounterSample.cs
- WmpBitmapDecoder.cs
- DataRowCollection.cs
- NameSpaceEvent.cs
- MonitoringDescriptionAttribute.cs
- ConfigPathUtility.cs
- SerializationFieldInfo.cs
- JpegBitmapDecoder.cs
- MetadataSet.cs
- ImageListStreamer.cs
- HttpCapabilitiesSectionHandler.cs
- AssemblyAttributes.cs
- TemplatePropertyEntry.cs
- ChineseLunisolarCalendar.cs
- InputProcessorProfiles.cs
- CompareInfo.cs
- DbDeleteCommandTree.cs
- XhtmlTextWriter.cs
- WindowsIdentity.cs
- SafeSystemMetrics.cs
- EpmCustomContentSerializer.cs
- ErrorReporting.cs
- Monitor.cs
- SymmetricAlgorithm.cs
- EntityDataSourceEntitySetNameItem.cs