forked from scriptcs/scriptcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIScriptExecutor.cs
More file actions
27 lines (19 loc) · 822 Bytes
/
IScriptExecutor.cs
File metadata and controls
27 lines (19 loc) · 822 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
using System.Collections.Generic;
using System.Reflection;
namespace ScriptCs.Contracts
{
public interface IScriptExecutor
{
void ImportNamespaces(params string[] namespaces);
void RemoveNamespaces(params string[] namespaces);
void AddReferences(params Assembly[] references);
void RemoveReferences(params Assembly[] references);
void AddReferences(params string[] references);
void RemoveReferences(params string[] references);
void Initialize(IEnumerable<string> paths, IEnumerable<IScriptPack> scriptPacks, params string[] scriptArgs);
void Reset();
void Terminate();
ScriptResult Execute(string script, params string[] scriptArgs);
ScriptResult ExecuteScript(string script, params string[] scriptArgs);
}
}