Example #1
0
 /// <summary>
 /// Register a command of type <typeparamref name="T"/>.
 /// </summary>
 /// <typeparam name="T">The type of the command to be registered.</typeparam>
 /// <param name="container">The container in which the command will be registered.</param>
 /// <returns>The injection container for chaining.</returns>
 public static IInjectionContainer RegisterCommand <T>(this IInjectionContainer container) where T : ICommand, new()
 {
     container.RegisterCommand(typeof(T));
     return(container);
 }