<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.4.0" />

ReactiveUI.Primitives.Advanced.EmptyWitness<T>

public sealed class EmptyWitness<T> : IObserver<T>
Delegate-backed observer that defaults missing handlers to no-op behavior.
public static readonly EmptyWitness<T> Instance

Gets the shared no-op witness instance.

public EmptyWitness(Action<T> onNext)

Initializes a new instance of the EmptyWitness<T> class.

public EmptyWitness(Action<T> onNext, Action<Exception> onError)

Initializes a new instance of the EmptyWitness<T> class.

public EmptyWitness(Action<T> onNext, Action onCompleted)

Initializes a new instance of the EmptyWitness<T> class.

public EmptyWitness(Action<T> onNext, Action<Exception> onError, Action onCompleted)

Initializes a new instance of the EmptyWitness<T> class.

public void OnCompleted()

Calls the action implementing OnCompleted.

public void OnError(Exception error)

Calls the action implementing OnError.

public void OnNext(T value)

Calls the action implementing OnNext.