Class DependencyInjection
Provides extension methods for configuring the MediatorForge library services.
Inheritance
System.Object
DependencyInjection
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MediatorForge
Assembly: MediatorForge.dll
Syntax
public static class DependencyInjection
Methods
| Improve this Doc View SourceAddMediatorForge(IServiceCollection, Assembly)
Adds and configures the MediatorForge library services to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.
Declaration
public static IServiceCollection AddMediatorForge(this IServiceCollection services, Assembly assembly)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection to add the services to. |
| System.Reflection.Assembly | assembly | The assembly containing the MediatR handlers and validators. |
Returns
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | The Microsoft.Extensions.DependencyInjection.IServiceCollection so that additional calls can be chained. |