Class IClassReceiverExtension
Namespace: Xareus.Scenarios.Unity.Providers
Assembly: Xareus.Scenarios.Unity.dll
Syntax
public static class IClassReceiverExtension
Methods
OnValueReceived<T>(IReceiver<T>, object, ValueChangedEventArgs<T>)
Method to call when a class is received
Declaration
public static void OnValueReceived<T>(this IReceiver<T> receiver, object sender, ValueChangedEventArgs<T> args)
Parameters
Type | Name | Description |
---|---|---|
IReceiver<T> | receiver | |
object | sender | IClassProvider from which the event was sent |
ValueChangedEventArgs<T> | args | Argument that contains the class to receive |
Type Parameters
Name | Description |
---|---|
T |
Subscribe<T>(IReceiver<T>, IProvider<T>)
Subscribe to an IClassProvider ClassChanged event
Declaration
public static void Subscribe<T>(this IReceiver<T> receiver, IProvider<T> provider)
Parameters
Type | Name | Description |
---|---|---|
IReceiver<T> | receiver | |
IProvider<T> | provider |
Type Parameters
Name | Description |
---|---|
T |