-
Notifications
You must be signed in to change notification settings - Fork 13
/
FrameworkOptions.cs
39 lines (31 loc) · 1.06 KB
/
FrameworkOptions.cs
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
37
38
39
namespace UIShell.OSGi
{
using System;
using System.Collections.Generic;
using System.IO;
public class FrameworkOptions
{
internal FrameworkOptions(string[] pluginsDirectoryList)
{
PluginsDirectoryList = new List<string>(pluginsDirectoryList);
BundlePersistentFileName = "persistent.xml";
}
public string BaseDirectory => AppDomain.CurrentDomain.BaseDirectory;
public string BundlePersistentFileName { get; set; }
public DefaultBundleState DefaultBundleState { get; set; }
public string GlobalPersistentFile =>
Path.Combine(BaseDirectory, BundlePersistentFileName);
public List<string> PluginsDirectoryList { get; private set; }
public string PluginsDirectoryName
{
get
{
if (PluginsDirectoryList.Count > 0)
{
return PluginsDirectoryList[0];
}
return "Plugins";
}
}
}
}