Table of Contents

Class Listener

Namespace
SodaFlow
Assembly
SodaFlow.dll

Empty listeners, and combinators for treating some listeners as one.

[PublicAPI]
public static class Listener
Inheritance
Listener
Inherited Members

Remarks

Each composite here stops each listener that made it. Thus, one handle releases a part of the graph with some subscriptions.

Fields

Empty

A listener which is not listening to anything, and whose Unlisten() does nothing.

EmptyStrong

An IStrongListener which is not listening to anything, and whose Unlisten() does nothing.

EmptyWeak

An IWeakListener which is not listening to anything, and whose Unlisten() does nothing.

Methods

Append(IListener, IListener)

Combines two listeners into one which unlistens the two.

AppendStrong(IStrongListener, IStrongListener)

Combines two strong listeners into one strong listener which unlistens the two.

AppendWeak(IWeakListener, IWeakListener)

Combines two weak listeners into one weak listener which unlistens the two.

CreateComposite(IReadOnlyList<IListener>)

Combines some listeners into one which unlistens all of them.

CreateStrongComposite(IReadOnlyList<IStrongListener>)

Combines some strong listeners into one strong listener which unlistens all of them.

CreateWeakComposite(IReadOnlyList<IWeakListener>)

Combines some weak listeners into one weak listener which unlistens all of them.