keyedScoped<TService> static method
ServiceDescriptor
keyedScoped<TService>(
- Object? serviceKey,
- KeyedImplementationFactory implementationFactory
Creates an instance of ServiceDescriptor with the specified
TService, implementationFactory and the ServiceLifetime.scoped.
Implementation
static ServiceDescriptor keyedScoped<TService>(
Object? serviceKey,
KeyedImplementationFactory implementationFactory,
) =>
ServiceDescriptor._factory(
serviceType: TService,
serviceKey: serviceKey,
factory: implementationFactory,
lifetime: ServiceLifetime.scoped,
);