Class CommonDelegates
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
AlwaysFalse
Gets a delegate that always returns false for any object parameter.
public static readonly Func<object?, bool> AlwaysFalse
Field Value
AlwaysTrue
Gets a delegate that always returns true for any object parameter.
public static readonly Func<object?, bool> AlwaysTrue
Field Value
CompletedTask
Gets a delegate that returns a completed task.
public static readonly Func<Task> CompletedTask
Field Value
CompletedTaskWithCancellation
Gets a delegate that returns a completed task with a cancellation token parameter.
public static readonly Func<CancellationToken, Task> CompletedTaskWithCancellation
Field Value
CompletedTaskWithString
Gets a delegate that returns a completed task with a string parameter.
public static readonly Func<string?, Task> CompletedTaskWithString
Field Value
NoOp
Gets a no-operation action delegate.
public static readonly Action NoOp
Field Value
NoOpWithParam
Gets a no-operation action delegate that accepts any object parameter.
public static readonly Action<object?> NoOpWithParam