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
- ZipIOLocalFileBlock.cs
- SqlCommand.cs
- WebBrowserContainer.cs
- TextClipboardData.cs
- DictionaryTraceRecord.cs
- IIS7WorkerRequest.cs
- ClrPerspective.cs
- MatchNoneMessageFilter.cs
- PeerCustomResolverBindingElement.cs
- Codec.cs
- SystemTcpStatistics.cs
- ImageConverter.cs
- BaseParagraph.cs
- SortQuery.cs
- SendSecurityHeaderElementContainer.cs
- dataobject.cs
- InfoCardServiceInstallComponent.cs
- RoutedEventConverter.cs
- ProgressiveCrcCalculatingStream.cs
- ETagAttribute.cs
- MetadataArtifactLoaderCompositeFile.cs
- TerminatorSinks.cs
- Lasso.cs
- HtmlToClrEventProxy.cs
- PathGeometry.cs
- WebPartExportVerb.cs
- ToolStripProgressBar.cs
- ITextView.cs
- SigningCredentials.cs
- ColumnResizeUndoUnit.cs
- BinaryObjectReader.cs
- BoolExpressionVisitors.cs
- SqlBulkCopyColumnMappingCollection.cs
- DrawToolTipEventArgs.cs
- ObjectIDGenerator.cs
- XmlLoader.cs
- OrderingQueryOperator.cs
- Int64AnimationUsingKeyFrames.cs
- SiteMapNode.cs
- TextRange.cs
- BindingContext.cs
- GiveFeedbackEvent.cs
- DataStorage.cs
- QilList.cs
- CellTreeSimplifier.cs
- BackgroundWorker.cs
- DbProviderManifest.cs
- CommandValueSerializer.cs
- EmptyEnumerable.cs
- TextLineBreak.cs
- ValidatorUtils.cs
- XmlEncodedRawTextWriter.cs
- IPEndPointCollection.cs
- TextRangeEdit.cs
- LoadedOrUnloadedOperation.cs
- TabControlCancelEvent.cs
- CodeNamespaceImportCollection.cs
- CopyOnWriteList.cs
- LedgerEntryCollection.cs
- ViewGenResults.cs
- ZipPackagePart.cs
- ExpressionHelper.cs
- XmlQueryRuntime.cs
- SimpleExpression.cs
- HotCommands.cs
- SqlProcedureAttribute.cs
- ExceptionUtil.cs
- NoResizeSelectionBorderGlyph.cs
- BamlTreeNode.cs
- webclient.cs
- TableDetailsCollection.cs
- DateTime.cs
- PropertyBuilder.cs
- AxWrapperGen.cs
- FormViewUpdatedEventArgs.cs
- PassportAuthentication.cs
- BufferModesCollection.cs
- GridViewItemAutomationPeer.cs
- Enlistment.cs
- DeclaredTypeElement.cs
- TriState.cs
- SettingsProperty.cs
- ExpandableObjectConverter.cs
- QueryOutputWriter.cs
- _UriTypeConverter.cs
- GridViewCancelEditEventArgs.cs
- FilterableAttribute.cs
- StateMachineTimers.cs
- Options.cs
- _StreamFramer.cs
- MouseWheelEventArgs.cs
- securestring.cs
- DeferredElementTreeState.cs
- CodeDirectoryCompiler.cs
- App.cs
- WorkItem.cs
- OrderByExpression.cs
- DSASignatureDeformatter.cs
- TextUtf8RawTextWriter.cs
- XmlComplianceUtil.cs