SmartDIExtensions.cs
/// <summary>
/// The same as <see cref="RegisterType" />, but with hyper-simplified parameters.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="diContainer">The di container.</param>
/// <param name="storageRule">The storage rule.</param>
/// <param name="creator">The creator.</param>
/// <summary>
/// Registers the type of the solo.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="diContainer">The di container.</param>
/// <param name="storageRule">The storage rule.</param>
/// <param name="creator">The creator.</param>
/// <autogeneratedoc />
/// TODO Edit XML Comment Template for RegisterSoloType`1
Registers the type of the solo.
Registers the type of the solo .
public static void RegisterSoloType<T>
      (
         this ISmartDIContainer diContainer,
         StorageRules           storageRule = StorageRules.AnyAccessLevel,
         Func<object>           creator     = null
      )
         where T : class
      {
         diContainer.RegisterSoloType(typeof(T), storageRule, creator);
      }
public static void RegisterSoloType < T > ( this ISmartDIContainer diContainer , StorageRules storageRule = StorageRules . AnyAccessLevel , Func < object > creator = null ) where T : class { diContainer . RegisterSoloType ( typeof ( T ) , storageRule , creator ) ; }
Registers the type of the solo.
Registers the type of the solo .
ISmartDIContainer
this
storageRule
StorageRules
The storage rule.
The storage rule .
creator
Func<object>
None
diContainer
The di container.
The di container .
typeparam
None
typeparam
None
autogeneratedoc
None