public AsyncManager(ICommand funcToRun, string id, IAsyncCommandContainer container)
 {
     _container = container;
     _id = id;
     _asyncFunc = funcToRun;
     _container.Add(this, id, funcToRun.GetType());
     SetInactive();//set as inactive right away.
 }
 public CommandRemover(IAsyncCommandContainer container)
 {
     _container = container;
 }
 public AsyncManagerController(IAsyncCommandContainer container, IAsyncCommandRemover remover)
 {
     _container = container;
     _remover = remover;
 }
 public static IAsyncCommand AsAsync(this ICommand func, string id, IAsyncCommandContainer container)
 {
     IAsyncCommand asyncFuncManager = new AsyncManager(func, id, container);
     return asyncFuncManager;
 }
 //
 // GET: /LongRunning/
 public LongRunnerController(IAsyncCommandContainer container)
 {
     _container = container;
 }
 public ReportEmailerController(IAsyncCommandContainer container)
 {
     _container = container;
 }
 public CommandContainerManager(IAsyncCommandContainer container)
 {
     _container = container;
 }