singleton<TService> static method
Creates an instance of ServiceDescriptor with the specified
TService, implementationFactory and the ServiceLifetime.singleton.
Implementation
static ServiceDescriptor singleton<TService>(
ImplementationFactory implementationFactory,
) =>
ServiceDescriptor._factory(
serviceType: TService,
factory: implementationFactory,
lifetime: ServiceLifetime.singleton,
);