Exemplo n.º 1
0
 /// <summary>
 ///   Sets component lifestyle to specified one.
 /// </summary>
 /// <returns></returns>
 public ComponentRegistration <TService> LifestyleCustom <TLifestyleManager>() where TLifestyleManager : ILifestyleManager, new()
 {
     return(LifeStyle.Custom <TLifestyleManager>());
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Sets component lifestyle to specified one.
 /// </summary>
 /// <returns></returns>
 public ComponentRegistration <TService> LifestyleCustom(Type customLifestyleType)
 {
     return(LifeStyle.Custom(customLifestyleType));
 }