C# Class Hudl.Mjolnir.Command.CommandContext

Handles some dependency injection and configuration for Mjolnir.
Datei anzeigen Open project: hudl/Mjolnir

Private Properties

Property Type Description

Public Methods

Method Description
IgnoreExceptions ( HashSet types ) : void

Ignored exception types won't count toward breakers tripping or other error counters. Useful for things like validation, where the system isn't having any problems and the caller needs to validate before invoking. This list is most applicable when using [Command] attributes, since extending Command offers the ability to catch these types specifically within Execute() - though there may still be some benefit in extended Commands for validation-like situations where throwing is still desired.

Method Details

IgnoreExceptions() public static method

Ignored exception types won't count toward breakers tripping or other error counters. Useful for things like validation, where the system isn't having any problems and the caller needs to validate before invoking. This list is most applicable when using [Command] attributes, since extending Command offers the ability to catch these types specifically within Execute() - though there may still be some benefit in extended Commands for validation-like situations where throwing is still desired.
public static IgnoreExceptions ( HashSet types ) : void
types HashSet
return void