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
- CompModSwitches.cs
- ToolStripOverflow.cs
- StreamGeometryContext.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- PrintPreviewGraphics.cs
- WsatServiceAddress.cs
- InkCanvasFeedbackAdorner.cs
- RegexGroupCollection.cs
- HttpCookieCollection.cs
- ChangeBlockUndoRecord.cs
- Event.cs
- TransformerTypeCollection.cs
- _emptywebproxy.cs
- SQLBoolean.cs
- TagPrefixAttribute.cs
- InternalsVisibleToAttribute.cs
- HttpRequestMessageProperty.cs
- WindowsToolbar.cs
- SamlAttributeStatement.cs
- SafeCoTaskMem.cs
- HScrollProperties.cs
- CriticalHandle.cs
- PersianCalendar.cs
- Publisher.cs
- FileNotFoundException.cs
- BamlBinaryWriter.cs
- UserUseLicenseDictionaryLoader.cs
- DaylightTime.cs
- CompiledRegexRunner.cs
- DataGridViewComboBoxColumn.cs
- ConfigXmlWhitespace.cs
- SqlServices.cs
- ServiceObjectContainer.cs
- DbProviderFactories.cs
- Transform3DGroup.cs
- TabletDeviceInfo.cs
- XmlCompatibilityReader.cs
- TokenizerHelper.cs
- RsaSecurityTokenParameters.cs
- ListViewInsertionMark.cs
- GC.cs
- ContainerControlDesigner.cs
- Privilege.cs
- RouteItem.cs
- Int64Animation.cs
- RequestCachePolicy.cs
- XmlEncoding.cs
- DataMemberFieldEditor.cs
- TraceSource.cs
- FunctionNode.cs
- ScrollBarAutomationPeer.cs
- ErrorFormatter.cs
- CryptoKeySecurity.cs
- OleAutBinder.cs
- SafeRightsManagementSessionHandle.cs
- BamlCollectionHolder.cs
- TextRangeSerialization.cs
- Boolean.cs
- SqlTypeConverter.cs
- CodeGenerator.cs
- CryptographicAttribute.cs
- Function.cs
- LongValidator.cs
- PngBitmapEncoder.cs
- Trustee.cs
- PropertyFilterAttribute.cs
- NativeMethods.cs
- WebPartConnectionsDisconnectVerb.cs
- TreeNodeCollectionEditor.cs
- NumberSubstitution.cs
- OdbcParameterCollection.cs
- FieldNameLookup.cs
- ByteKeyFrameCollection.cs
- BitmapData.cs
- SvcMapFileLoader.cs
- AsyncContentLoadedEventArgs.cs
- DetailsViewInsertEventArgs.cs
- EnvironmentPermission.cs
- Int32Rect.cs
- XmlObjectSerializerWriteContextComplex.cs
- Object.cs
- StyleSelector.cs
- Helper.cs
- UpDownBase.cs
- ContextActivityUtils.cs
- DataControlFieldHeaderCell.cs
- Convert.cs
- SQLRoleProvider.cs
- MenuStrip.cs
- ExtendedProperty.cs
- EdmValidator.cs
- ObjectDataSourceFilteringEventArgs.cs
- DbSourceParameterCollection.cs
- ImportException.cs
- RedistVersionInfo.cs
- ThreadSafeList.cs
- MenuItemStyle.cs
- AttachedPropertyBrowsableAttribute.cs
- AsymmetricAlgorithm.cs
- TextBlockAutomationPeer.cs