Exemplo n.º 1
0
        /// <inheritdoc />
        public Task Run(TaskParameters arguments, IProgress <float> progress, CancellationToken cancellationToken)
        {
            ICollection <IPlugin> plugins = _pluginManager.GetAllPlugins();
            int count = 0;

            progress.Report(0);

            foreach (IPlugin plugin in plugins)
            {
                plugin.Initialize(_provider);

                progress.Report(count / plugins.Count * 100);
                count++;
            }

            progress.Report(100);
            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
 public IActionResult Index()
 {
     return(View(_pluginManager.GetAllPlugins()));
 }