Example #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>());
 }
Example #2
0
 /// <summary>
 ///   Sets component lifestyle to specified one.
 /// </summary>
 /// <returns></returns>
 public ComponentRegistration <TService> LifestyleCustom(Type customLifestyleType)
 {
     return(LifeStyle.Custom(customLifestyleType));
 }