Table of Contents

Class EventPublisher

Namespace
Executables.Events
Assembly
executables.dll

Factory methods for creating event publishing handlers.

public static class EventPublisher
Inheritance
EventPublisher
Inherited Members

Methods

Parallel(ParallelOptions)

Creates a handler that publishes notifications to subscribers in parallel.

[Pure]
public static Handler<Publishing<Unit>, Unit> Parallel(ParallelOptions options = null)

Parameters

options ParallelOptions

Parallel execution options, or null to use default options.

Returns

Handler<Publishing<Unit>, Unit>

Handler that publishes notifications in parallel.

Parallel<T>(ParallelOptions)

Creates a handler that publishes values to subscribers in parallel.

[Pure]
public static Handler<Publishing<T>, Unit> Parallel<T>(ParallelOptions options = null)

Parameters

options ParallelOptions

Parallel execution options, or null to use default options.

Returns

Handler<Publishing<T>, Unit>

Handler that publishes values in parallel.

Type Parameters

T

Type of published event value.

Sequential(PublishOrder)

Creates a handler that publishes notifications to subscribers sequentially.

[Pure]
public static Handler<Publishing<Unit>, Unit> Sequential(PublishOrder order = PublishOrder.Direct)

Parameters

order PublishOrder

Order in which subscribers are notified.

Returns

Handler<Publishing<Unit>, Unit>

Handler that publishes notifications sequentially.

Exceptions

ArgumentOutOfRangeException

order is not a valid PublishOrder value.

Sequential<T>(PublishOrder)

Creates a handler that publishes values to subscribers sequentially.

[Pure]
public static Handler<Publishing<T>, Unit> Sequential<T>(PublishOrder order = PublishOrder.Direct)

Parameters

order PublishOrder

Order in which subscribers are notified.

Returns

Handler<Publishing<T>, Unit>

Handler that publishes values sequentially.

Type Parameters

T

Type of published event value.

Exceptions

ArgumentOutOfRangeException

order is not a valid PublishOrder value.