Table of Contents

Method CreateComposite

Namespace
SodaFlow
Assembly
SodaFlow.dll

CreateComposite(IReadOnlyList<IListener>)

Combines some listeners into one which unlistens all of them.

public static IListener CreateComposite(IReadOnlyList<IListener> listeners)

Parameters

listeners IReadOnlyList<IListener>

The listeners to put together.

Returns

IListener

A listener whose Unlisten() unlistens each listener in listeners.

Remarks

This code reads the list at the construction of the composite. A subsequent change to the list has no effect.