-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathScriptPack.cs
More file actions
36 lines (30 loc) · 795 Bytes
/
ScriptPack.cs
File metadata and controls
36 lines (30 loc) · 795 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
33
34
35
36
namespace Superscribe.ScriptCS
{
using System.ComponentModel.Composition;
using System.Linq;
using ScriptCs.Contracts;
public class ScriptPack : IScriptPack
{
[ImportingConstructor]
public ScriptPack()
{
}
IScriptPackContext IScriptPack.GetContext()
{
return new SuperscribeCS();
}
void IScriptPack.Initialize(IScriptPackSession session)
{
//session.AddReference("Superscribe");
var namespaces = new[]
{
"Superscribe.ScriptCS",
"Superscribe"
}.ToList();
namespaces.ForEach(session.ImportNamespace);
}
void IScriptPack.Terminate()
{
}
}
}