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
- TextElementEnumerator.cs
- AppearanceEditorPart.cs
- EventLogPermissionHolder.cs
- TypeInformation.cs
- CodeTypeDeclarationCollection.cs
- KeyedCollection.cs
- ReferentialConstraint.cs
- XPathDocumentBuilder.cs
- CfgArc.cs
- DBCSCodePageEncoding.cs
- WebPartCloseVerb.cs
- Path.cs
- TokenBasedSet.cs
- RegexBoyerMoore.cs
- RegexGroupCollection.cs
- ArraySubsetEnumerator.cs
- ReadWriteSpinLock.cs
- WindowsStatusBar.cs
- ProxyAssemblyNotLoadedException.cs
- XhtmlBasicObjectListAdapter.cs
- FixedDocumentSequencePaginator.cs
- WebControlAdapter.cs
- DecoderFallbackWithFailureFlag.cs
- Table.cs
- AssemblyBuilder.cs
- SerializationSectionGroup.cs
- Accessible.cs
- CollectionViewSource.cs
- PageBuildProvider.cs
- StreamReader.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TypeGeneratedEventArgs.cs
- Transform.cs
- ListView.cs
- SwitchAttribute.cs
- AppDomainGrammarProxy.cs
- WindowsComboBox.cs
- SortFieldComparer.cs
- PerformanceCountersElement.cs
- DataGridViewColumnHeaderCell.cs
- XmlProcessingInstruction.cs
- SafeNativeHandle.cs
- log.cs
- MenuRendererClassic.cs
- CheckPair.cs
- SplitterPanelDesigner.cs
- RefreshPropertiesAttribute.cs
- HostedHttpRequestAsyncResult.cs
- NamespaceCollection.cs
- SignatureToken.cs
- SqlUDTStorage.cs
- WindowsToolbar.cs
- BamlTreeMap.cs
- MonthCalendar.cs
- IndexOutOfRangeException.cs
- ToolStripDropDownClosingEventArgs.cs
- OleDbConnectionInternal.cs
- MaterializeFromAtom.cs
- IntMinMaxAggregationOperator.cs
- ConfigurationStrings.cs
- StartUpEventArgs.cs
- XmlSerializationReader.cs
- OleDbConnection.cs
- StringFreezingAttribute.cs
- Certificate.cs
- sqlcontext.cs
- FactorySettingsElement.cs
- Compiler.cs
- OleDbError.cs
- ImportedNamespaceContextItem.cs
- PostBackTrigger.cs
- ZoomPercentageConverter.cs
- ConsumerConnectionPointCollection.cs
- HttpRequestCacheValidator.cs
- _PooledStream.cs
- VideoDrawing.cs
- MenuItem.cs
- CompoundFileReference.cs
- BatchStream.cs
- DrawingCollection.cs
- FixedPage.cs
- ExpandSegment.cs
- XmlSignatureProperties.cs
- EmptyWithCancelationCheckWorkItem.cs
- ObjectDataSourceSelectingEventArgs.cs
- PropertyDescriptorComparer.cs
- WindowHideOrCloseTracker.cs
- DelegateArgument.cs
- LoaderAllocator.cs
- XamlToRtfParser.cs
- NativeMethods.cs
- SmtpLoginAuthenticationModule.cs
- CollectionsUtil.cs
- AudioFormatConverter.cs
- RefreshEventArgs.cs
- DBAsyncResult.cs
- MailAddressCollection.cs
- PointKeyFrameCollection.cs
- TagMapInfo.cs
- _SslSessionsCache.cs