Class ExceptionCatcher
Configures the request pipeline to be "exception proof".
Inherited Members
Namespace: Solti.Utils.Rpc.Pipeline
Assembly: Solti.Utils.Rpc.Server.dll
Syntax
public class ExceptionCatcher : RequestHandlerBuilder, IBuilder<IRequestHandler>.IParameterizedBuilder<IRequestHandler>, IExceptionCatcherHandlerConfig
Constructors
ExceptionCatcher(WebServiceBuilder, RequestHandlerBuilder)
Creates a new ExceptionCatcher instance.
Declaration
public ExceptionCatcher(WebServiceBuilder webServiceBuilder, RequestHandlerBuilder parent)
Parameters
Type | Name | Description |
---|---|---|
WebServiceBuilder | webServiceBuilder | |
RequestHandlerBuilder | parent |
Properties
AllowLogs
If set to true, the ILogger service will be invoked in case of unhandled exception.
Declaration
public bool AllowLogs { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Build(IRequestHandler)
Creates a new IRequestHandler instance.
Declaration
public override IRequestHandler Build(IRequestHandler next)
Parameters
Type | Name | Description |
---|---|---|
IRequestHandler | next |
Returns
Type | Description |
---|---|
IRequestHandler |
Overrides
Remarks
You should not call this method directly.