Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / ClientUriBehavior.cs / 1 / ClientUriBehavior.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Description { using System; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; using System.Collections.Generic; public class ClientViaBehavior : IEndpointBehavior { Uri uri; public ClientViaBehavior(Uri uri) { if (uri == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("uri"); this.uri = uri; } public Uri Uri { get { return this.uri; } set { if (value == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); this.uri = value; } } void IEndpointBehavior.Validate(ServiceEndpoint serviceEndpoint) { } void IEndpointBehavior.AddBindingParameters(ServiceEndpoint serviceEndpoint, BindingParameterCollection bindingParameters) { } void IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint serviceEndpoint, EndpointDispatcher endpointDispatcher) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( SR.GetString(SR.SFXEndpointBehaviorUsedOnWrongSide, typeof(ClientViaBehavior).Name))); } void IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint serviceEndpoint, ClientRuntime behavior) { if (behavior == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("behavior"); } behavior.Via = this.Uri; } } } // 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
- RuntimeIdentifierPropertyAttribute.cs
- LookupBindingPropertiesAttribute.cs
- ListViewInsertionMark.cs
- EventListener.cs
- ApplicationBuildProvider.cs
- PolygonHotSpot.cs
- COM2ExtendedUITypeEditor.cs
- DbParameterCollectionHelper.cs
- ClientTarget.cs
- HandleCollector.cs
- Literal.cs
- SecurityManager.cs
- WebPartManagerInternals.cs
- SimpleHandlerFactory.cs
- PairComparer.cs
- Assert.cs
- Encoding.cs
- CacheVirtualItemsEvent.cs
- PrintDialog.cs
- NotEqual.cs
- DuplexSecurityProtocolFactory.cs
- NativeCompoundFileAPIs.cs
- CharacterBuffer.cs
- DataTable.cs
- ViewStateException.cs
- FontSizeConverter.cs
- ThreadLocal.cs
- TraversalRequest.cs
- WindowExtensionMethods.cs
- Viewport3DAutomationPeer.cs
- PrintingPermission.cs
- WebPartTracker.cs
- Listbox.cs
- AssemblyNameProxy.cs
- CommentEmitter.cs
- UnmanagedMarshal.cs
- IxmlLineInfo.cs
- DataControlFieldHeaderCell.cs
- BypassElementCollection.cs
- PolicyAssertionCollection.cs
- Zone.cs
- DataObjectCopyingEventArgs.cs
- NotSupportedException.cs
- DataSourceCache.cs
- MemberDomainMap.cs
- LabelLiteral.cs
- OleDbConnectionFactory.cs
- DateTimeParse.cs
- ProfileSettingsCollection.cs
- UnsignedPublishLicense.cs
- GroupItem.cs
- CaseExpr.cs
- CapabilitiesSection.cs
- Tile.cs
- MailSettingsSection.cs
- RSAPKCS1SignatureDeformatter.cs
- SafeProcessHandle.cs
- SqlFactory.cs
- XamlFilter.cs
- FlowLayout.cs
- SqlUtils.cs
- UInt16Storage.cs
- _NestedSingleAsyncResult.cs
- CircleHotSpot.cs
- ColumnMapProcessor.cs
- Interfaces.cs
- LinkButton.cs
- Util.cs
- SvcMapFileLoader.cs
- SecurityImpersonationBehavior.cs
- _DigestClient.cs
- TransformGroup.cs
- UiaCoreProviderApi.cs
- PlacementWorkspace.cs
- ForceCopyBuildProvider.cs
- SafeNativeMethodsCLR.cs
- Int16Converter.cs
- Wizard.cs
- TryLoadRunnableWorkflowCommand.cs
- XpsSerializationManager.cs
- CheckBox.cs
- EntityUtil.cs
- RenamedEventArgs.cs
- Mapping.cs
- BindingOperations.cs
- PersonalizationProviderCollection.cs
- Identifier.cs
- DataGridRowsPresenter.cs
- NullableBoolConverter.cs
- TraceLevelHelper.cs
- UIElement3D.cs
- Array.cs
- RichTextBoxDesigner.cs
- LassoHelper.cs
- ModelItem.cs
- ManagementOperationWatcher.cs
- ObsoleteAttribute.cs
- CrossContextChannel.cs
- PropertyChangeTracker.cs
- FormsAuthenticationModule.cs