Table of Contents

AddCommandHandler Method

Definition

Namespace
Savvyio.Commands
Assemblies
Savvyio.Commands.dll
Source
src/Savvyio.Commands/SavvyioOptionsExtensions.cs

AddCommandHandler<TImplementation>(SavvyioOptions)

Adds an implementation of the ICommandHandler interface to HandlerImplementationTypes (if not already registered).

public static SavvyioOptions AddCommandHandler<TImplementation>(this SavvyioOptions options) where TImplementation : class, ICommandHandler

Parameters

options SavvyioOptions

The SavvyioOptions to extend.

Returns

SavvyioOptions

A reference to options so that additional configuration calls can be chained.

Type Parameters

TImplementation

The type that implements the ICommandHandler interface.