AddSavvyIO Method
Definition
- Namespace
- Savvyio.Extensions.DependencyInjection
- Assemblies
- Savvyio.Extensions.DependencyInjection.dll
AddSavvyIO(IServiceCollection, Action<SavvyioDependencyInjectionOptions>)
Adds Savvy I/O related dispatcher- and handler- types to the specified IServiceCollection.
public static IServiceCollection AddSavvyIO(this IServiceCollection services, Action<SavvyioDependencyInjectionOptions> setup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
setupAction<SavvyioDependencyInjectionOptions>The SavvyioDependencyInjectionOptions which may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional calls can be chained.
Exceptions
- ArgumentNullException
servicescannot be null.