Class DirectiveExtensions
This class contains extension methods used for working with directives.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public static class DirectiveExtensions
Methods
| Improve this Doc View SourceWhen<TException>(Directive)
Maps the specified self
to use when a specified type of exception occurs.
Declaration
public static KeyValuePair<Type, Directive> When<TException>(this Directive self)
where TException : Exception
Parameters
Type | Name | Description |
---|---|---|
Directive | self | The directive used when the exception occurs. |
Returns
Type | Description |
---|---|
KeyValuePair<Type, Directive> | The mapping of the exception to the directive. |
Type Parameters
Name | Description |
---|---|
TException | The type of exception being mapped. |