개정판 43e1d368
issue #0000 코드 정리
Change-Id: I7c8ba4ef6d78a7e4f51b72f226507cddac722939
ConvertService/ServiceBase/Markus.Service.Convert/Plugin.cs | ||
---|---|---|
12 | 12 |
{ |
13 | 13 |
public static class PluginService |
14 | 14 |
{ |
15 |
private const string ConfigFileName = "Plugin.ini";
|
|
16 |
private const string BasePath = "Plugin";
|
|
15 |
private const string CONFIG_FILE = "Plugin.ini";
|
|
16 |
private const string PLUGIN_PATH = "Plugin";
|
|
17 | 17 |
|
18 | 18 |
public static bool Run(string ConvertID) |
19 | 19 |
{ |
20 | 20 |
bool result = false; |
21 | 21 |
|
22 |
var pluginPath = System.IO.Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase, BasePath); |
|
22 |
var baseDir = new System.IO.DirectoryInfo(AppDomain.CurrentDomain.SetupInformation.ApplicationBase).Parent.FullName; |
|
23 |
var pluginPath = System.IO.Path.Combine(baseDir, PLUGIN_PATH); |
|
23 | 24 |
var plugins = GenericPluginLoader<IPlugin>.LoadPlugins(pluginPath); |
24 |
var config = ConfigHelper.AppConfig(ConfigFileName);
|
|
25 |
var config = ConfigHelper.AppConfig(System.IO.Path.Combine(baseDir, CONFIG_FILE));
|
|
25 | 26 |
|
26 | 27 |
if (plugins != null) |
27 | 28 |
{ |
내보내기 Unified diff