Subscribe Method
- Namespace
- SatorImaging.UnityFundamentals
Subscribe(IObserver<T>)
public IDisposable Subscribe(IObserver<T> observer)
Notifies the provider that an observer is to receive notifications.
Parameters
observer
IObserver<T>The object that is to receive notifications.
Returns
- IDisposable
A reference to an interface that allows observers to stop receiving notifications before the provider has finished sending them.
Subscribe(Action<T>, bool)
public ObservableEvent<T>.Subscription Subscribe(Action<T> act, bool disallowDuplicate = true)
Subscribe event.
Parameters
Returns
- ObservableEvent<T>.Subscription
IDisposable object which represents subscription.