Table of Contents

Class CommonDelegates

Namespace
Excalibur.Dispatch.Caching
Assembly
Excalibur.Dispatch.dll

Common cached delegates for message processing.

public static class CommonDelegates
Inheritance
CommonDelegates
Inherited Members

Fields

AlwaysCatchException

Gets a delegate that always returns true to catch any exception.

public static readonly Func<Exception, bool> AlwaysCatchException

Field Value

Func<Exception, bool>

AlwaysFalse

Gets a delegate that always returns false for any object parameter.

public static readonly Func<object?, bool> AlwaysFalse

Field Value

Func<object, bool>

AlwaysTrue

Gets a delegate that always returns true for any object parameter.

public static readonly Func<object?, bool> AlwaysTrue

Field Value

Func<object, bool>

CompletedTask

Gets a delegate that returns a completed task.

public static readonly Func<Task> CompletedTask

Field Value

Func<Task>

CompletedTaskWithCancellation

Gets a delegate that returns a completed task with a cancellation token parameter.

public static readonly Func<CancellationToken, Task> CompletedTaskWithCancellation

Field Value

Func<CancellationToken, Task>

CompletedTaskWithString

Gets a delegate that returns a completed task with a string parameter.

public static readonly Func<string?, Task> CompletedTaskWithString

Field Value

Func<string, Task>

NoOp

Gets a no-operation action delegate.

public static readonly Action NoOp

Field Value

Action

NoOpWithParam

Gets a no-operation action delegate that accepts any object parameter.

public static readonly Action<object?> NoOpWithParam

Field Value

Action<object>