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
- FilePresentation.cs
- HtmlContainerControl.cs
- DefaultAsyncDataDispatcher.cs
- DocumentViewerHelper.cs
- BaseParser.cs
- CollectionTypeElement.cs
- MethodCallTranslator.cs
- MenuItem.cs
- ScriptIgnoreAttribute.cs
- _SafeNetHandles.cs
- ProtectedConfiguration.cs
- ExtendedTransformFactory.cs
- Rotation3DAnimation.cs
- LoginView.cs
- DataGridViewComboBoxCell.cs
- SafeLocalMemHandle.cs
- ParamArrayAttribute.cs
- InkPresenter.cs
- StretchValidation.cs
- ScrollChrome.cs
- TextPointerBase.cs
- LingerOption.cs
- PhonemeConverter.cs
- XsltSettings.cs
- XmlSchemaGroup.cs
- TraceUtils.cs
- VectorCollectionConverter.cs
- FontStyleConverter.cs
- UnsafeNativeMethods.cs
- UseManagedPresentationBindingElementImporter.cs
- EventLogInformation.cs
- Pkcs7Recipient.cs
- ManagementObject.cs
- Document.cs
- HttpRequest.cs
- HttpHandlerActionCollection.cs
- JsonEncodingStreamWrapper.cs
- SQLGuid.cs
- InstanceView.cs
- PeerIPHelper.cs
- TextEditorCharacters.cs
- ClientSettingsProvider.cs
- HScrollProperties.cs
- shaperfactoryquerycacheentry.cs
- AmbiguousMatchException.cs
- COM2ColorConverter.cs
- ConfigurationSettings.cs
- CodeArrayIndexerExpression.cs
- TextContainerHelper.cs
- BoundField.cs
- RouteData.cs
- DynamicContractTypeBuilder.cs
- ImageSource.cs
- DynamicDataExtensions.cs
- SkipStoryboardToFill.cs
- Matrix3D.cs
- UInt16.cs
- DataSourceControl.cs
- Helper.cs
- TypeSemantics.cs
- AmbientProperties.cs
- WebPartConnectionsEventArgs.cs
- IFlowDocumentViewer.cs
- ParseHttpDate.cs
- NativeMethods.cs
- XmlC14NWriter.cs
- SqlPersonalizationProvider.cs
- String.cs
- WebServiceClientProxyGenerator.cs
- LZCodec.cs
- FocusWithinProperty.cs
- XmlSerializationReader.cs
- TimerElapsedEvenArgs.cs
- FloaterBaseParaClient.cs
- GlobalId.cs
- DataTableClearEvent.cs
- SizeAnimation.cs
- SubtreeProcessor.cs
- BulletChrome.cs
- XmlTypeMapping.cs
- BatchParser.cs
- InputScopeConverter.cs
- AnonymousIdentificationSection.cs
- ParameterReplacerVisitor.cs
- NativeMethods.cs
- IntPtr.cs
- BypassElement.cs
- Operator.cs
- ReadOnlyDataSource.cs
- InplaceBitmapMetadataWriter.cs
- MenuItemStyle.cs
- PointCollection.cs
- XmlDataLoader.cs
- CatalogPartCollection.cs
- ModelItemKeyValuePair.cs
- Scheduler.cs
- PageTheme.cs
- KeyEvent.cs
- IsolatedStorageFilePermission.cs
- XamlReaderHelper.cs