Exemple #1
0
 public static IObjectAssemblySpecification AsSessionSingleton(this IObjectAssemblySpecification reg)
 {
     return(reg.WithInstanceCreationStrategy(_httpSessionInstanceFactory));
 }
Exemple #2
0
 public static IObjectAssemblySpecification AsWebCached(this IObjectAssemblySpecification reg)
 {
     return(reg.WithInstanceCreationStrategy(_webCachedInstanceFactory));
 }
Exemple #3
0
 public static IObjectAssemblySpecification AsThreadSingleton(this IObjectAssemblySpecification reg)
 {
     return(reg.WithInstanceCreationStrategy(_threadLocalInstanceFactory));
 }
Exemple #4
0
 public static IObjectAssemblySpecification AsInstanceCacheInstance(this IObjectAssemblySpecification reg)
 {
     return(reg.WithInstanceCreationStrategy(_instanceCacheFactory));
 }
Exemple #5
0
 public static IObjectAssemblySpecification AsAlwaysNew(this IObjectAssemblySpecification reg)
 {
     return(reg.WithInstanceCreationStrategy(null));
 }