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
- BatchServiceHost.cs
- DrawingState.cs
- SerialReceived.cs
- EntityWithChangeTrackerStrategy.cs
- Permission.cs
- RelationshipEnd.cs
- _DigestClient.cs
- ConnectionStringsExpressionBuilder.cs
- IPHostEntry.cs
- CodeBinaryOperatorExpression.cs
- OneWayBindingElementImporter.cs
- ParameterElement.cs
- HandleRef.cs
- SmiRecordBuffer.cs
- ReachNamespaceInfo.cs
- mda.cs
- RawStylusInputCustomDataList.cs
- HtmlShimManager.cs
- DoubleLinkList.cs
- PropertyInformationCollection.cs
- PageCatalogPart.cs
- GuidTagList.cs
- MatrixAnimationUsingPath.cs
- OleDbFactory.cs
- Margins.cs
- AddressUtility.cs
- _SSPIWrapper.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- UpdateException.cs
- ServiceDescriptionData.cs
- LazyTextWriterCreator.cs
- XamlSerializerUtil.cs
- XPathPatternBuilder.cs
- PublishLicense.cs
- DataObjectAttribute.cs
- SqlServer2KCompatibilityAnnotation.cs
- WebBrowsableAttribute.cs
- dsa.cs
- ProfileGroupSettings.cs
- PageHandlerFactory.cs
- SchemaTypeEmitter.cs
- DragDropManager.cs
- BindToObject.cs
- StrokeFIndices.cs
- ComPlusTypeLoader.cs
- AutomationElementCollection.cs
- StackOverflowException.cs
- TextDpi.cs
- CreateUserErrorEventArgs.cs
- ACE.cs
- PropertyFilter.cs
- Style.cs
- PropertyValueUIItem.cs
- BindingOperations.cs
- FormConverter.cs
- RoleExceptions.cs
- PassportIdentity.cs
- ZipFileInfo.cs
- MethodToken.cs
- ProxyWebPartConnectionCollection.cs
- SmiMetaDataProperty.cs
- Attachment.cs
- XPathNodeInfoAtom.cs
- ConcatQueryOperator.cs
- MapPathBasedVirtualPathProvider.cs
- basecomparevalidator.cs
- FormClosingEvent.cs
- NativeMethodsCLR.cs
- MemberDescriptor.cs
- XmlArrayItemAttribute.cs
- MenuAutomationPeer.cs
- XmlCharacterData.cs
- SqlNodeAnnotation.cs
- CategoryGridEntry.cs
- StylusOverProperty.cs
- PatternMatcher.cs
- BackgroundFormatInfo.cs
- UInt32.cs
- IUnknownConstantAttribute.cs
- DLinqDataModelProvider.cs
- HostUtils.cs
- DataGridViewRowCancelEventArgs.cs
- LogReserveAndAppendState.cs
- MappingSource.cs
- ImageSource.cs
- InboundActivityHelper.cs
- XhtmlBasicLinkAdapter.cs
- Variant.cs
- SelectionProcessor.cs
- Keyboard.cs
- WebPartEditorApplyVerb.cs
- CodeCatchClauseCollection.cs
- ComboBox.cs
- HttpApplication.cs
- PrintController.cs
- Paragraph.cs
- ListSortDescriptionCollection.cs
- ipaddressinformationcollection.cs
- CompositeFontFamily.cs
- TokenizerHelper.cs