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
- EventLogEntryCollection.cs
- Timeline.cs
- SerializationObjectManager.cs
- XmlElement.cs
- DatatypeImplementation.cs
- CounterSampleCalculator.cs
- AllMembershipCondition.cs
- EntityDataSource.cs
- sqlcontext.cs
- UrlPath.cs
- Exceptions.cs
- WindowsTreeView.cs
- StylusPointDescription.cs
- Mouse.cs
- PointCollectionValueSerializer.cs
- DesignerOptionService.cs
- TextElement.cs
- SchemaInfo.cs
- TextBox.cs
- PackWebRequest.cs
- _BaseOverlappedAsyncResult.cs
- LogicalExpressionEditor.cs
- ResourceReferenceExpression.cs
- WindowsRegion.cs
- Perspective.cs
- Boolean.cs
- InitializationEventAttribute.cs
- MessageQueueInstaller.cs
- Camera.cs
- ReliabilityContractAttribute.cs
- FormatPage.cs
- EncoderFallback.cs
- CodeCatchClause.cs
- SqlGatherConsumedAliases.cs
- TableLayoutColumnStyleCollection.cs
- HtmlTableRowCollection.cs
- EntityContainerRelationshipSet.cs
- X509RawDataKeyIdentifierClause.cs
- BitmapSizeOptions.cs
- ToolStripSeparator.cs
- HebrewNumber.cs
- Rectangle.cs
- StringHandle.cs
- CommandBindingCollection.cs
- ContextProperty.cs
- StaticSiteMapProvider.cs
- Compiler.cs
- UriScheme.cs
- CqlLexer.cs
- LeaseManager.cs
- BufferedGraphicsManager.cs
- SafePointer.cs
- AutomationPatternInfo.cs
- InsufficientExecutionStackException.cs
- CharacterMetrics.cs
- ImageFormat.cs
- XmlSchemaValidationException.cs
- DataSourceCacheDurationConverter.cs
- BinaryObjectReader.cs
- _HeaderInfoTable.cs
- CodeFieldReferenceExpression.cs
- ThreadStateException.cs
- ModelServiceImpl.cs
- SchemaImporterExtension.cs
- MobileControlBuilder.cs
- DataGridBoolColumn.cs
- PreservationFileWriter.cs
- WaitHandleCannotBeOpenedException.cs
- SmiRecordBuffer.cs
- ForEach.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- UrlMapping.cs
- JumpTask.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- XmlNamespaceDeclarationsAttribute.cs
- BinaryMethodMessage.cs
- PtsHost.cs
- ConstructorBuilder.cs
- NumberSubstitution.cs
- ValueUtilsSmi.cs
- SQLBytesStorage.cs
- ContentValidator.cs
- PeerReferralPolicy.cs
- OleDbConnection.cs
- CookieParameter.cs
- SingletonInstanceContextProvider.cs
- ClonableStack.cs
- DataSpaceManager.cs
- DataGridHeaderBorder.cs
- EventProviderWriter.cs
- TextWriter.cs
- PenContexts.cs
- FixedSOMPage.cs
- AnnotationObservableCollection.cs
- DesignSurfaceServiceContainer.cs
- Vector.cs
- ZipIOExtraFieldElement.cs
- XmlElementList.cs
- QueryRewriter.cs
- DataGridViewCellMouseEventArgs.cs