Exemplo n.º 1
0
 /// <summary> Register the instance of TType as self TType is singleton mode </summary>
 public static void RegisterSingle <TType>(this ILocatorBuilder builder, TType instance)
 {
     builder.RegisterSingle <TType, TType>(instance);
 }
Exemplo n.º 2
0
 /// <summary> Register the instance of TConcrete as TType is singleton mode </summary>
 public static void RegisterSingle <TType, TConcrete>(this ILocatorBuilder builder, TType instance) where TConcrete : TType
 {
     builder.RegisterSingle(typeof(TType), typeof(TConcrete), instance);
 }
Exemplo n.º 3
0
 /// <summary> Register class TType as self TType is singleton mode </summary>
 public static void RegisterSingle <TType>(this ILocatorBuilder builder)
 {
     builder.RegisterSingle <TType, TType>();
 }