Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2924_DotNetCoreMigration/HeuristicLab.PluginInfrastructure/3.3/Interfaces/IRunnerHost.cs @ 16985

Last change on this file since 16985 was 16985, checked in by dpiringe, 5 years ago

#2924:

  • added CLI Framework HeuristicLab.CommandLineInterface
  • added definition language test project HeuristicLab.DefinitionLanguage
  • added test project HeuristicLab.DynamicAssemblyTestApp, for PluginInfrastructure testing
  • changed project HeuristicLab to .NET Core and used it to create a CLI-Tool with the new CLI Framework
  • added Docker support to HeuristicLab
  • added IRunnerHost.cs ... forgot last commit
  • changed DockerRunnerHost and NativeRunnerHost to HeuristicLab-3.3.exe, was a little test project before
  • added new solution file HeuristicLab 3.3 No Views.sln, where all view projects are unloaded at start
File size: 1.1 KB
Line 
1using System.Threading;
2using System.Threading.Tasks;
3
4namespace HeuristicLab.PluginInfrastructure {
5
6  /// <summary>
7  /// Interface for all runner implementations.
8  /// </summary>
9  public interface IRunnerHost {
10
11    /// <summary>
12    /// Method to run the runner. This method is blocking.
13    /// </summary>
14    /// <param name="runner">A instance of an IRunner.</param>
15    void Run(IRunner runner);
16
17    /// <summary>
18    /// Method to run the runner async. A CencellationToken can be specified.
19    /// </summary>
20    /// <param name="runner">A instance of an IRunner</param>
21    /// <param name="token">The CancellationToken obtained from an CancellationTokenSource.</param>
22    /// <returns>The task in which the process runs.</returns>
23    Task RunAsync(IRunner runner, CancellationToken? token = null);
24
25    /// <summary>
26    /// Method to pause the runner and the isolated IApplication.
27    /// </summary>
28    void Pause();
29
30    /// <summary>
31    /// Method to resume a paused runner and the isolated IApplication.
32    /// </summary>
33    void Resume();
34
35  }
36}
Note: See TracBrowser for help on using the repository browser.