Class OperationBroker
Denotes a broker for model operations
public class OperationBroker
- Inheritance
-
OperationBroker
- Inherited Members
Properties
Instance
Gets the singleton operation broker instance
public static OperationBroker Instance { get; }
Property Value
Methods
GetRegisteredDelegate<TDelegate>(IOperation)
Gets the registered delegate for the given operation
public TDelegate GetRegisteredDelegate<TDelegate>(IOperation op) where TDelegate : class
Parameters
op
IOperationthe operation for which a delegate is requested
Returns
- TDelegate
The registered delegate or null, if no delegate can be found
Type Parameters
TDelegate
The type of the delegate
GetRegisteredDelegate<TDelegate>(Lazy<IOperation>)
Gets the registered delegate for the given operation
public TDelegate GetRegisteredDelegate<TDelegate>(Lazy<IOperation> op) where TDelegate : class
Parameters
op
Lazy<IOperation>the operation for which a delegate is requested
Returns
- TDelegate
The registered delegate or null, if no delegate can be found
Type Parameters
TDelegate
The type of the delegate
RegisterDelegate(IOperation, object)
Registers the provided delegate for the given operation
public void RegisterDelegate(IOperation op, object @delegate)
Parameters
op
IOperationthe operation
delegate
objectthe delegate
RegisterDelegate(Lazy<IOperation>, object)
Registers the provided delegate for the given operation
public void RegisterDelegate(Lazy<IOperation> op, object @delegate)
Parameters
op
Lazy<IOperation>the operation
delegate
objectthe delegate