Table of Contents

Subscribe Method

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

act Action<T>
disallowDuplicate bool

Returns

ObservableEvent<T>.Subscription

IDisposable object which represents subscription.