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
- ClusterSafeNativeMethods.cs
- XhtmlBasicCommandAdapter.cs
- DynamicVirtualDiscoSearcher.cs
- TextFormatterContext.cs
- HttpException.cs
- StreamWithDictionary.cs
- DesignerValidationSummaryAdapter.cs
- SQLInt16Storage.cs
- CriticalExceptions.cs
- PropertyGrid.cs
- SmtpTransport.cs
- updateconfighost.cs
- SocketElement.cs
- PropertySegmentSerializationProvider.cs
- PlatformCulture.cs
- Error.cs
- StringFreezingAttribute.cs
- SynchronizedDispatch.cs
- IntSecurity.cs
- FormsAuthentication.cs
- ApplicationException.cs
- CodeIterationStatement.cs
- XmlMapping.cs
- RtType.cs
- GridErrorDlg.cs
- ConfigurationManagerInternalFactory.cs
- PasswordTextNavigator.cs
- TransformValueSerializer.cs
- WasAdminWrapper.cs
- SR.cs
- TypeSystemProvider.cs
- TemplateBindingExpression.cs
- HttpListenerException.cs
- ListViewGroup.cs
- Pen.cs
- AudioSignalProblemOccurredEventArgs.cs
- HelpInfo.cs
- SecurityContext.cs
- FontStyleConverter.cs
- EastAsianLunisolarCalendar.cs
- RelatedImageListAttribute.cs
- GradientStop.cs
- COM2IDispatchConverter.cs
- AccessedThroughPropertyAttribute.cs
- StrokeCollectionConverter.cs
- GroupBoxAutomationPeer.cs
- UIPropertyMetadata.cs
- FormatterServicesNoSerializableCheck.cs
- SchemaElementLookUpTable.cs
- IntermediatePolicyValidator.cs
- _NestedSingleAsyncResult.cs
- DataTableNewRowEvent.cs
- ThreadStartException.cs
- XmlAttributeCollection.cs
- SettingsPropertyNotFoundException.cs
- ThousandthOfEmRealDoubles.cs
- SEHException.cs
- ConfigurationSettings.cs
- OAVariantLib.cs
- XmlComplianceUtil.cs
- Panel.cs
- CmsInterop.cs
- PointLightBase.cs
- TemplateAction.cs
- NetworkStream.cs
- followingsibling.cs
- WebConfigurationHostFileChange.cs
- WaitForChangedResult.cs
- FormatterServices.cs
- StringInfo.cs
- ByteStack.cs
- UpdateCommand.cs
- EventSetter.cs
- DeviceContext2.cs
- DynamicField.cs
- ChannelSettingsElement.cs
- ValueExpressions.cs
- PersonalizationProvider.cs
- DeviceContexts.cs
- TransactionInterop.cs
- ExtensibleClassFactory.cs
- DateTimeParse.cs
- Pair.cs
- Claim.cs
- sqlinternaltransaction.cs
- ElementHostPropertyMap.cs
- ShapeTypeface.cs
- ConfigurationElementCollection.cs
- WebPartMenuStyle.cs
- SubclassTypeValidator.cs
- FontStretchConverter.cs
- PtsHost.cs
- TextTreeFixupNode.cs
- SecurityProtocolCorrelationState.cs
- DnsPermission.cs
- TextParentUndoUnit.cs
- _SafeNetHandles.cs
- SynchronizedInputAdaptor.cs
- PhysicalFontFamily.cs
- dataobject.cs