Table of Contents

Class OperationBroker

Namespace
NMF.Models
Assembly
NMF.Models.dll

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

OperationBroker

Methods

GetRegisteredDelegate<TDelegate>(IOperation)

Gets the registered delegate for the given operation

public TDelegate GetRegisteredDelegate<TDelegate>(IOperation op) where TDelegate : class

Parameters

op 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

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 IOperation

the operation

delegate object

the 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 object

the delegate