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
opIOperationthe operation for which a delegate is requested
Returns
- TDelegate
The registered delegate or null, if no delegate can be found
Type Parameters
TDelegateThe 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
opLazy<IOperation>the operation for which a delegate is requested
Returns
- TDelegate
The registered delegate or null, if no delegate can be found
Type Parameters
TDelegateThe type of the delegate
RegisterDelegate(IOperation, object)
Registers the provided delegate for the given operation
public void RegisterDelegate(IOperation op, object @delegate)
Parameters
opIOperationthe operation
delegateobjectthe delegate
RegisterDelegate(Lazy<IOperation>, object)
Registers the provided delegate for the given operation
public void RegisterDelegate(Lazy<IOperation> op, object @delegate)
Parameters
opLazy<IOperation>the operation
delegateobjectthe delegate