ServiceRpcDescriptor.WithTraceSource(TraceSource) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.