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
- Converter.cs
- LinearKeyFrames.cs
- DataGridViewRow.cs
- TreeNodeBindingCollection.cs
- LongValidatorAttribute.cs
- Point.cs
- MouseCaptureWithinProperty.cs
- OrderedDictionary.cs
- securitycriticaldataClass.cs
- StreamWithDictionary.cs
- LineInfo.cs
- Random.cs
- CacheOutputQuery.cs
- MapPathBasedVirtualPathProvider.cs
- UnsafeNativeMethods.cs
- ListSurrogate.cs
- FollowerQueueCreator.cs
- TextFindEngine.cs
- SegmentInfo.cs
- RMEnrollmentPage1.cs
- MethodRental.cs
- SqlBinder.cs
- TextOptionsInternal.cs
- StringUtil.cs
- SqlBooleanizer.cs
- TreeViewDesigner.cs
- XmlSchemaAppInfo.cs
- SwitchLevelAttribute.cs
- AppDomainManager.cs
- pingexception.cs
- ImmutablePropertyDescriptorGridEntry.cs
- WebScriptServiceHost.cs
- StringBuilder.cs
- XsdDataContractImporter.cs
- ColorConverter.cs
- RangeEnumerable.cs
- SqlVisitor.cs
- IfJoinedCondition.cs
- EntityDataSourceViewSchema.cs
- TreeBuilderBamlTranslator.cs
- PeerApplicationLaunchInfo.cs
- ConstantSlot.cs
- ControlAdapter.cs
- Debugger.cs
- CalendarSelectionChangedEventArgs.cs
- ReferenceEqualityComparer.cs
- _DisconnectOverlappedAsyncResult.cs
- CodeAttributeDeclaration.cs
- SafeReversePInvokeHandle.cs
- SqlPersonalizationProvider.cs
- Pair.cs
- CommandBinding.cs
- XmlSerializerObjectSerializer.cs
- ObfuscateAssemblyAttribute.cs
- RenderingBiasValidation.cs
- AutomationProperties.cs
- FixedSchema.cs
- Int32Converter.cs
- InputEventArgs.cs
- FormViewDeleteEventArgs.cs
- ParseNumbers.cs
- ContextInformation.cs
- DbgUtil.cs
- Environment.cs
- UpdatePanelControlTrigger.cs
- Triangle.cs
- BaseDataList.cs
- DataObject.cs
- DockingAttribute.cs
- LogArchiveSnapshot.cs
- _Connection.cs
- DataGridBoolColumn.cs
- ExpressionTextBoxAutomationPeer.cs
- XmlIlGenerator.cs
- VirtualizedItemPattern.cs
- AmbiguousMatchException.cs
- Solver.cs
- ResourceCategoryAttribute.cs
- MDIControlStrip.cs
- HMACSHA384.cs
- GridErrorDlg.cs
- TypeHelpers.cs
- ComplusEndpointConfigContainer.cs
- Screen.cs
- SafePEFileHandle.cs
- SqlProcedureAttribute.cs
- SchemaAttDef.cs
- Calendar.cs
- SiteMapNodeItemEventArgs.cs
- WindowManager.cs
- PingOptions.cs
- StrongBox.cs
- ReadOnlyHierarchicalDataSource.cs
- BrowserInteropHelper.cs
- ChangeTracker.cs
- XmlUTF8TextReader.cs
- MarkupCompilePass1.cs
- HostingPreferredMapPath.cs
- PagePropertiesChangingEventArgs.cs
- SqlBinder.cs