Share via


ServiceJsonRpcDescriptor.WithExceptionStrategy(ExceptionProcessing) Method

Definition

Returns an instance of ServiceJsonRpcDescriptor that resembles this one, but with the ExceptionStrategy property set to a new value.

public:
 Microsoft::ServiceHub::Framework::ServiceJsonRpcDescriptor ^ WithExceptionStrategy(StreamJsonRpc::ExceptionProcessing exceptionStrategy);
public Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor WithExceptionStrategy (StreamJsonRpc.ExceptionProcessing exceptionStrategy);
member this.WithExceptionStrategy : StreamJsonRpc.ExceptionProcessing -> Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor
Public Function WithExceptionStrategy (exceptionStrategy As ExceptionProcessing) As ServiceJsonRpcDescriptor

Parameters

exceptionStrategy
ExceptionProcessing

The new value for the ExceptionStrategy property.

Returns

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

Applies to