Class ExceptionCatcher

Configures the request pipeline to be "exception proof".

Inheritance
Object
RequestHandlerBuilder
ExceptionCatcher
Implements
IBuilder.IParameterizedBuilder<IRequestHandler>
IExceptionCatcherHandlerConfig
Inherited Members
RequestHandlerBuilder.Parent
RequestHandlerBuilder.WebServiceBuilder
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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
RequestHandlerBuilder.Build(IRequestHandler)
Remarks

You should not call this method directly.

Implements

IBuilder<TBuiltService>.IParameterizedBuilder<TParam>
IExceptionCatcherHandlerConfig

Extension Methods

RequestHandlerBuilderExtensions.GetParent<TParent>(RequestHandlerBuilder)
In This Article
Back to top Generated by DocFX