Exemplo n.º 1
0
 /// <summary>
 /// Set the registered item's contrainer resolution scope to <see cref="DreamContainerScope.Request"/>
 /// </summary>
 /// <param name="registrar">Registrar instance.</param>
 /// <returns>The modified registrar instance.</returns>
 public static IConcreteRegistrar RequestScoped(this IConcreteRegistrar registrar)
 {
     return(registrar.InScope(DreamContainerScope.Request));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set the registered item's contrainer resolution scope to <see cref="DreamContainerScope.Service"/>
 /// </summary>
 /// <param name="registrar">Registrar instance.</param>
 /// <returns>The modified registrar instance.</returns>
 public static IConcreteRegistrar ServiceScoped(this IConcreteRegistrar registrar)
 {
     return(registrar.InScope(DreamContainerScope.Service));
 }