Skip to content

Repository files navigation

Forbid.Extensions.Microsoft.DependencyInjection

Package to support Microsoft Dependency Injection for Forbid package.

.NET Nuget NuGet stable version GitHub license

Installing

Using dotnet cli

dotnet add package Forbid.Extensions.Microsoft.DependencyInjection --version 1.0.0

or package reference

<PackageReference Include="Forbid.Extensions.Microsoft.DependencyInjection" Version="1.0.0" />

Usage

using Forbids;

public void ConfigureServices(IServiceCollection services)
{
    services.AddForbids();  
}

Or

using Forbids;

public void ConfigureServices(IServiceCollection services)
{
    services.AddForbids(ServiceLifetime.Scoped); //default is Singleton  
}

About

Microsoft Dependency Injection support for Forbid package

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages