Пример #1
0
 internal CustomLifestyle(CustomLifestyleDelegate lifestyleDelegate)
 {
     this.lifestyleDelegate = lifestyleDelegate;
 }
Пример #2
0
 /// <summary>
 /// Creates a custom lifestyle.
 /// </summary>
 /// <returns>The custom lifestyle delegate.</returns>
 /// <param name="customLifestyle">The custom lifestyle.</param>
 public static Lifestyle CreateCustom(CustomLifestyleDelegate customLifestyle)
 {
     return(new CustomLifestyle(customLifestyle));
 }