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
- DeflateStream.cs
- ResourceContainer.cs
- MessageSecurityOverHttp.cs
- DetailsViewRowCollection.cs
- DockProviderWrapper.cs
- MessageDesigner.cs
- AsyncResult.cs
- ClientSettingsSection.cs
- wgx_sdk_version.cs
- ColumnTypeConverter.cs
- SqlMethodTransformer.cs
- FilterableAttribute.cs
- RadioButtonBaseAdapter.cs
- entityreference_tresulttype.cs
- SchemaAttDef.cs
- Completion.cs
- EmptyElement.cs
- PriorityChain.cs
- ExpressionBinding.cs
- TreeIterators.cs
- CollectionChangeEventArgs.cs
- ParseNumbers.cs
- Button.cs
- XPathSelectionIterator.cs
- ExitEventArgs.cs
- ColumnBinding.cs
- ClientTargetCollection.cs
- PropertyGridEditorPart.cs
- httpstaticobjectscollection.cs
- SiteMapPath.cs
- CanonicalXml.cs
- ExtenderProvidedPropertyAttribute.cs
- EncoderFallback.cs
- CookielessHelper.cs
- OrthographicCamera.cs
- StyleReferenceConverter.cs
- SHA256Managed.cs
- AggregatePushdown.cs
- LogReservationCollection.cs
- Single.cs
- ImageField.cs
- HashMembershipCondition.cs
- Underline.cs
- ConnectionPointCookie.cs
- InteropBitmapSource.cs
- ListView.cs
- CacheMode.cs
- ClientOperation.cs
- AssemblySettingAttributes.cs
- FeatureSupport.cs
- PolicyLevel.cs
- ObjectMemberMapping.cs
- CollaborationHelperFunctions.cs
- XmlWrappingReader.cs
- DefaultDialogButtons.cs
- BoundsDrawingContextWalker.cs
- FormViewDeleteEventArgs.cs
- ResourceManagerWrapper.cs
- BindingExpressionBase.cs
- GlobalizationAssembly.cs
- LocationSectionRecord.cs
- CreateParams.cs
- DisposableCollectionWrapper.cs
- ZipIOCentralDirectoryFileHeader.cs
- ListViewTableRow.cs
- NullRuntimeConfig.cs
- SafeFileMappingHandle.cs
- DoubleAnimation.cs
- Section.cs
- HttpProfileGroupBase.cs
- WebPartMenuStyle.cs
- SmiRequestExecutor.cs
- Compilation.cs
- TextChange.cs
- GacUtil.cs
- SaveRecipientRequest.cs
- XslException.cs
- PenLineCapValidation.cs
- AndCondition.cs
- CheckBoxBaseAdapter.cs
- ListBoxDesigner.cs
- BufferBuilder.cs
- Queue.cs
- HttpContext.cs
- CleanUpVirtualizedItemEventArgs.cs
- DragCompletedEventArgs.cs
- AssemblyResourceLoader.cs
- SQLInt64Storage.cs
- FixedDocumentSequencePaginator.cs
- LedgerEntryCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- AutoResizedEvent.cs
- Compiler.cs
- FontWeight.cs
- Logging.cs
- BoolLiteral.cs
- ValidatingReaderNodeData.cs
- InternalConfirm.cs
- XmlNodeList.cs
- QuaternionValueSerializer.cs