Skip to content

Fast.DependencyInjection public API

Targets: net8.0;net9.0;net10.0. This is a declaration and XML-comment reference. See the module guide for usage and constraints.

Source commit: 43554c07f6c216f80b509bd535c0a5b66ae7f2e8. Maintained through scripts/export-dotnet-api.ps1 -Language en; ordinary site builds consume this file directly.

Fast.DependencyInjection.IServiceCollectionExtension

Source · Targets: net8.0, net9.0, net10.0

csharp
[SuppressSniffer]
public static class IServiceCollectionExtension

Dependency injection extensions for IServiceCollection

Fast.DependencyInjection.IServiceCollectionExtension.AddDependencyInjection

Source · Targets: net8.0, net9.0, net10.0

csharp
public static IServiceCollection AddDependencyInjection(this IServiceCollection services)

Adds dependency injection services

  • Parameter services: The service collection to add services to
  • Returns: Returns services for chaining

Fast.DependencyInjection.IDependency

Source · Targets: net8.0, net9.0, net10.0

csharp
[SuppressSniffer]
public interface IDependency

Dependency marker interface

Fast.DependencyInjection.IScopedDependency

Source · Targets: net8.0, net9.0, net10.0

csharp
[SuppressSniffer]
public interface IScopedDependency : IDependency

Scoped service registration marker

Fast.DependencyInjection.ISingletonDependency

Source · Targets: net8.0, net9.0, net10.0

csharp
[SuppressSniffer]
public interface ISingletonDependency : IDependency

Singleton service registration marker

Fast.DependencyInjection.ITransientDependency

Source · Targets: net8.0, net9.0, net10.0

csharp
[SuppressSniffer]
public interface ITransientDependency : IDependency

Transient service registration marker