scoped<TService> static method

ServiceDescriptor scoped<TService>(
  1. ImplementationFactory implementationFactory
)

Creates an instance of ServiceDescriptor with the specified TService, implementationFactory and the ServiceLifetime.scoped.

Implementation

static ServiceDescriptor scoped<TService>(
  ImplementationFactory implementationFactory,
) =>
    ServiceDescriptor._factory(
      TService,
      implementationFactory,
      ServiceLifetime.scoped,
    );