Class PriorityCallbacks<TCallback>
Class that makes it possible to run callbacks with given priorities (order).
Inheritance
System.Object
PriorityCallbacks<TCallback>
Assembly: cs.temp.dll.dll
Syntax
public class PriorityCallbacks<TCallback> : IPriorityCallbacks<TCallback>
Type Parameters
Name |
Description |
TCallback |
|
Methods
GetCallbacks()
Declaration
public List<TCallback> GetCallbacks()
Returns
Type |
Description |
System.Collections.Generic.List<TCallback> |
|
RegisterAfterAll(TCallback)
Declaration
public void RegisterAfterAll(TCallback callback)
Parameters
Type |
Name |
Description |
TCallback |
callback |
|
RegisterBeforeAll(TCallback)
Declaration
public void RegisterBeforeAll(TCallback callback)
Parameters
Type |
Name |
Description |
TCallback |
callback |
|
RegisterCallback(Int32, TCallback, Boolean)
Declaration
public void RegisterCallback(int priority, TCallback callback, bool replaceExisting = false)
Parameters
Type |
Name |
Description |
System.Int32 |
priority |
|
TCallback |
callback |
|
System.Boolean |
replaceExisting |
|
RegisterCallbackAfter(Int32, TCallback, Boolean)
Declaration
public void RegisterCallbackAfter(int priority, TCallback callback, bool replaceExisting = false)
Parameters
Type |
Name |
Description |
System.Int32 |
priority |
|
TCallback |
callback |
|
System.Boolean |
replaceExisting |
|
RegisterCallbackBefore(Int32, TCallback, Boolean)
Declaration
public void RegisterCallbackBefore(int priority, TCallback callback, bool replaceExisting = false)
Parameters
Type |
Name |
Description |
System.Int32 |
priority |
|
TCallback |
callback |
|
System.Boolean |
replaceExisting |
|
RegisterCallbackInsteadOf(Int32, TCallback)
Declaration
public void RegisterCallbackInsteadOf(int priority, TCallback callback)
Parameters
Type |
Name |
Description |
System.Int32 |
priority |
|
TCallback |
callback |
|
Implements