Partilhar via


ServiceRpcDescriptor.WithTraceSource(TraceSource) Method

Definition

Returns an instance of ServiceRpcDescriptor that resembles this one, but with the TraceSource property set to the specified value.

public:
 Microsoft::ServiceHub::Framework::ServiceRpcDescriptor ^ WithTraceSource(System::Diagnostics::TraceSource ^ traceSource);
public Microsoft.ServiceHub.Framework.ServiceRpcDescriptor WithTraceSource (System.Diagnostics.TraceSource? traceSource);
member this.WithTraceSource : System.Diagnostics.TraceSource -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
Public Function WithTraceSource (traceSource As TraceSource) As ServiceRpcDescriptor

Parameters

traceSource
TraceSource

The receiver of trace messages.

Returns

A clone of this instance, with the property changed. Or this same instance if the property already matches.

Applies to