Show / Hide Table of Contents

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 Source

AddMediatorForge(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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX