addTransientFactory<TService extends Object> method

void addTransientFactory<TService extends Object>(
  1. ServiceFactory<TService> factory
)

Registers a transient service of the specified TService type implemented by the specified factory.

Implementation

void addTransientFactory<TService extends Object>(
  ServiceFactory<TService> factory,
) {
  addFactory(ServiceLifetime.transient, factory);
}