Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / DiscoveryViaBehavior.cs / 1305376 / DiscoveryViaBehavior.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Discovery { using System; using System.ServiceModel.Channels; using System.ServiceModel.Description; using System.ServiceModel.Dispatcher; class DiscoveryViaBehavior : IEndpointBehavior { Uri via; public DiscoveryViaBehavior(Uri via) { if (via == null) { throw FxTrace.Exception.ArgumentNull("via"); } this.via = via; } public Uri Via { get { return this.via; } set { if (value == null) { throw FxTrace.Exception.ArgumentNull("value"); } this.via = value; } } void IEndpointBehavior.AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters) { } void IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { if (clientRuntime == null) { throw FxTrace.Exception.ArgumentNull("clientRuntime"); } clientRuntime.Via = Via; } void IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) { // no op on the service side. } void IEndpointBehavior.Validate(ServiceEndpoint endpoint) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MessageHeaderInfoTraceRecord.cs
- ObjectAnimationUsingKeyFrames.cs
- ToolStripGripRenderEventArgs.cs
- NameTable.cs
- StateMachineExecutionState.cs
- Tracer.cs
- OpenTypeLayout.cs
- CapacityStreamGeometryContext.cs
- DbgCompiler.cs
- Models.cs
- StringUtil.cs
- DragDeltaEventArgs.cs
- DataRowExtensions.cs
- UncommonField.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- ImageBrush.cs
- SizeLimitedCache.cs
- StopRoutingHandler.cs
- HMACSHA1.cs
- XmlBufferReader.cs
- DataRelationCollection.cs
- FlowThrottle.cs
- ComboBoxAutomationPeer.cs
- LayoutEditorPart.cs
- ErrorWebPart.cs
- TypedAsyncResult.cs
- DbProviderFactory.cs
- TimerElapsedEvenArgs.cs
- WpfGeneratedKnownTypes.cs
- ReadOnlyDictionary.cs
- ScriptResourceInfo.cs
- HierarchicalDataBoundControl.cs
- NameValueConfigurationCollection.cs
- RsaSecurityTokenAuthenticator.cs
- DataBindingHandlerAttribute.cs
- DesignerSerializationOptionsAttribute.cs
- Instrumentation.cs
- TrackingProfileSerializer.cs
- WindowClosedEventArgs.cs
- Expressions.cs
- PropertyNames.cs
- HttpModuleCollection.cs
- TemplateBindingExpression.cs
- QuarticEase.cs
- ScalarConstant.cs
- NullableLongSumAggregationOperator.cs
- Style.cs
- EventRouteFactory.cs
- ElapsedEventArgs.cs
- DataGridViewButtonColumn.cs
- BookmarkScope.cs
- WebResourceUtil.cs
- SharedDp.cs
- ComEventsSink.cs
- BamlStream.cs
- XPathBinder.cs
- Line.cs
- RawStylusInputCustomData.cs
- XmlTextAttribute.cs
- DnsElement.cs
- MemberDomainMap.cs
- DefinitionUpdate.cs
- XmlSchemaCompilationSettings.cs
- WebBrowserNavigatingEventHandler.cs
- WorkflowControlEndpoint.cs
- PrintPreviewDialog.cs
- _DynamicWinsockMethods.cs
- FieldDescriptor.cs
- PassportAuthenticationModule.cs
- Solver.cs
- CharStorage.cs
- MachineKeySection.cs
- ClassImporter.cs
- QueryCursorEventArgs.cs
- WaveHeader.cs
- PropertySourceInfo.cs
- GetPageNumberCompletedEventArgs.cs
- ObjectTag.cs
- XamlSerializerUtil.cs
- BamlTreeUpdater.cs
- WebPartTransformerAttribute.cs
- PeerCollaborationPermission.cs
- BooleanExpr.cs
- AsyncCompletedEventArgs.cs
- OdbcConnectionStringbuilder.cs
- UnsafeNativeMethods.cs
- RecordsAffectedEventArgs.cs
- CallbackTimeoutsElement.cs
- PlainXmlSerializer.cs
- IndexedString.cs
- Clipboard.cs
- SQLSingle.cs
- ComponentEvent.cs
- MarkedHighlightComponent.cs
- FixedSOMImage.cs
- PieceDirectory.cs
- HwndAppCommandInputProvider.cs
- AvTraceFormat.cs
- WinInetCache.cs
- ClientSettingsStore.cs