Table of Contents

Method AddMediarionStreaming

Namespace
Mediarion
Assembly
Mediarion.Streaming.dll

AddMediarionStreaming(IServiceCollection, params Assembly[])

Registers the streaming handlers in the given assemblies, and replaces the mediator with one that can stream.

[RequiresUnreferencedCode("Streaming handlers are found by walking the types in an assembly.")]
[RequiresDynamicCode("Streaming handlers are registered against generics closed at run time.")]
public static IServiceCollection AddMediarionStreaming(this IServiceCollection services, params Assembly[] assemblies)

Parameters

services IServiceCollection

The container.

assemblies Assembly[]

The assemblies to scan.

Returns

IServiceCollection

The container, to carry on configuring.

Remarks

Call it after AddMediarion. Sending and publishing are untouched: the mediator it puts in place derives from the one that was there.