Table of Contents

Method AppendWeak

Namespace
SodaFlow
Assembly
SodaFlow.dll

AppendWeak(IWeakListener, IWeakListener)

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

public static IWeakListener AppendWeak(IWeakListener listener1, IWeakListener listener2)

Parameters

listener1 IWeakListener

The first listener.

listener2 IWeakListener

The second listener.

Returns

IWeakListener

An IWeakListener which unlistens the two given listeners.

Remarks

This and AppendStrong(IStrongListener, IStrongListener) have their own names, as CreateWeakComposite(IReadOnlyList<IWeakListener>) and CreateStrongComposite(IReadOnlyList<IStrongListener>) do. As overloads of Append(IListener, IListener), a type that is weak and strong at once matches each of them, and the call does not compile.