forked from ZeraGmbH/Blockly.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIScriptInstance.cs
More file actions
32 lines (27 loc) · 781 Bytes
/
IScriptInstance.cs
File metadata and controls
32 lines (27 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using BlocklyNet.Scripting.Logging;
namespace BlocklyNet.Scripting;
/// <summary>
/// Represents a running script.
/// </summary>
public interface IScriptInstance : IScript
{
/// <summary>
/// Untyped result of the script.
/// </summary>
object? Result { get; }
/// <summary>
/// Start the script execution - once.
/// </summary>
Task ExecuteAsync();
/// <summary>
/// Report the configuration used to start the script.
/// </summary>
StartScript GetRequest();
}
/// <summary>
/// Logging ready description of a running script.
/// </summary>
/// <typeparam name="TLogType">Type of a log entry.</typeparam>
public interface IScriptInstance<TLogType> : IScript<TLogType>, IScriptInstance where TLogType : ScriptLoggingResult
{
}