using Kyoo.Controllers;
using Unity;
namespace Kyoo
{
///
/// A static class with helper functions to setup external modules
///
public static class Module
{
///
/// Register a new task to the container.
///
/// The container
/// The type of the task
/// The initial container.
public static IUnityContainer AddTask(this IUnityContainer services)
where T : class, ITask
{
services.RegisterSingleton();
return services;
}
}
}