/// <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)); }
/// <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)); }