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
- FloatMinMaxAggregationOperator.cs
- MdImport.cs
- RulePatternOps.cs
- ControlCachePolicy.cs
- SHA1CryptoServiceProvider.cs
- XmlDeclaration.cs
- ClusterRegistryConfigurationProvider.cs
- ICspAsymmetricAlgorithm.cs
- ValidationRule.cs
- GlobalizationSection.cs
- ProgressBarAutomationPeer.cs
- SectionInput.cs
- XPathScanner.cs
- CalendarDateChangedEventArgs.cs
- SafeThemeHandle.cs
- RemotingConfigParser.cs
- PrimaryKeyTypeConverter.cs
- EventEntry.cs
- MaskDesignerDialog.cs
- DbInsertCommandTree.cs
- BaseProcessor.cs
- HTTPNotFoundHandler.cs
- NameValueConfigurationCollection.cs
- Ref.cs
- Win32PrintDialog.cs
- MissingMemberException.cs
- ExpressionEditorAttribute.cs
- DataGridViewCellEventArgs.cs
- WorkflowRuntimeService.cs
- Suspend.cs
- Blend.cs
- SoapWriter.cs
- TrackingProfile.cs
- SByte.cs
- DataGridViewCellStyleBuilderDialog.cs
- StatusBarPanelClickEvent.cs
- EmptyEnumerator.cs
- Point3DAnimationBase.cs
- GridViewUpdatedEventArgs.cs
- CreateWorkflowOwnerCommand.cs
- DataGridView.cs
- PointLightBase.cs
- StubHelpers.cs
- StringDictionaryCodeDomSerializer.cs
- WindowsGraphicsWrapper.cs
- SamlAudienceRestrictionCondition.cs
- InlineUIContainer.cs
- TableLayoutSettingsTypeConverter.cs
- EntityDataSourceChangingEventArgs.cs
- IOThreadTimer.cs
- SamlSecurityTokenAuthenticator.cs
- EventLogTraceListener.cs
- XslAst.cs
- BitmapEffectState.cs
- DiscardableAttribute.cs
- ToolboxItemLoader.cs
- TempFiles.cs
- dsa.cs
- ConstantExpression.cs
- WebException.cs
- SoapReflectionImporter.cs
- SqlServices.cs
- SessionState.cs
- HyperLinkField.cs
- DataGridViewCellEventArgs.cs
- ScrollEvent.cs
- ScrollItemProviderWrapper.cs
- InputLangChangeEvent.cs
- DbParameterCollection.cs
- ContentType.cs
- MessageContractAttribute.cs
- SystemIPInterfaceProperties.cs
- DesignerHost.cs
- ResolveMatchesMessage11.cs
- DrawingCollection.cs
- BatchParser.cs
- tooltip.cs
- CompilerWrapper.cs
- ComplexTypeEmitter.cs
- CapabilitiesState.cs
- NativeMethods.cs
- PerSessionInstanceContextProvider.cs
- FullTrustAssemblyCollection.cs
- FrameworkPropertyMetadata.cs
- CompensatableTransactionScopeActivityDesigner.cs
- DataServiceRequest.cs
- SQLResource.cs
- ChannelSinkStacks.cs
- CodeGeneratorOptions.cs
- ISO2022Encoding.cs
- Rotation3D.cs
- WsiProfilesElementCollection.cs
- DynamicEndpointElement.cs
- XmlSerializableServices.cs
- RemoteHelper.cs
- XhtmlBasicSelectionListAdapter.cs
- PropertyMapper.cs
- DocumentEventArgs.cs
- SqlDataSourceView.cs
- DeclarativeCatalogPart.cs