transient<TService> static method

ServiceDescriptor transient<TService>(
  1. ImplementationFactory implementationFactory
)

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

Implementation

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