addTransient<T> method

dynamic addTransient<T>(
  1. StoreFactoryFunc<T> func
)

registers transient instances ( a new instance is provider per request )

Implementation

addTransient<T>(StoreFactoryFunc<T> func) {
  _map[T] = _StoreFactory<T>(_StoreFactoryType.transient, func: func);
}