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
- ToolboxComponentsCreatingEventArgs.cs
- CodePrimitiveExpression.cs
- DataBoundControlActionList.cs
- JournalEntryStack.cs
- CssTextWriter.cs
- LogPolicy.cs
- ToolboxComponentsCreatedEventArgs.cs
- PointHitTestResult.cs
- WindowsProgressbar.cs
- ToolStripSplitButton.cs
- EventDescriptor.cs
- SQLGuid.cs
- Variant.cs
- HebrewCalendar.cs
- CodeNamespaceCollection.cs
- DrawingDrawingContext.cs
- LoginView.cs
- WebPart.cs
- SimpleHandlerFactory.cs
- DiffuseMaterial.cs
- CompatibleComparer.cs
- BrowserCapabilitiesFactoryBase.cs
- DirectionalLight.cs
- FlagsAttribute.cs
- ManipulationInertiaStartingEventArgs.cs
- PrintEvent.cs
- DbDataRecord.cs
- MultiPageTextView.cs
- WebPartConnectVerb.cs
- __Filters.cs
- DuplicateMessageDetector.cs
- CatalogPartCollection.cs
- NetSectionGroup.cs
- PropertyInfoSet.cs
- SystemIcons.cs
- ProgramNode.cs
- _AuthenticationState.cs
- HyperLink.cs
- BinaryKeyIdentifierClause.cs
- SecurityHeaderElementInferenceEngine.cs
- ConfigurationStrings.cs
- SqlCacheDependencyDatabaseCollection.cs
- Authorization.cs
- UITypeEditors.cs
- ZoneLinkButton.cs
- ProviderConnectionPoint.cs
- SafeNativeMethodsCLR.cs
- ReadOnlyHierarchicalDataSourceView.cs
- EntityRecordInfo.cs
- ListViewDeletedEventArgs.cs
- PathTooLongException.cs
- SequentialWorkflowHeaderFooter.cs
- DataSourceCacheDurationConverter.cs
- figurelength.cs
- StopStoryboard.cs
- HtmlFormParameterWriter.cs
- ReadOnlyDictionary.cs
- Serializer.cs
- RegistrationServices.cs
- Substitution.cs
- EntityDataSourceValidationException.cs
- PickDesigner.xaml.cs
- Color.cs
- BamlRecords.cs
- RegexCaptureCollection.cs
- FilterQuery.cs
- PersonalizationProvider.cs
- nulltextcontainer.cs
- ClipboardProcessor.cs
- ProviderUtil.cs
- RequestTimeoutManager.cs
- DependencyPropertyAttribute.cs
- OleDbParameterCollection.cs
- HScrollBar.cs
- Latin1Encoding.cs
- HitTestResult.cs
- AttributeXamlType.cs
- MediaElement.cs
- ScalarConstant.cs
- ExpressionConverter.cs
- HttpRequest.cs
- OracleMonthSpan.cs
- UpnEndpointIdentityExtension.cs
- SubqueryRules.cs
- ExceptionRoutedEventArgs.cs
- OperandQuery.cs
- SqlDataSource.cs
- MutexSecurity.cs
- RequestCacheValidator.cs
- CatalogZoneBase.cs
- CodeMethodReturnStatement.cs
- Collection.cs
- DataGridTableCollection.cs
- InputLanguageSource.cs
- EqualityComparer.cs
- CodeValidator.cs
- TypeUtils.cs
- BindableTemplateBuilder.cs
- ClientSettings.cs
- CanonicalFontFamilyReference.cs