|
@@ -49,23 +49,30 @@ namespace WingCloudServer
|
|
|
{
|
|
|
if (!string.IsNullOrEmpty(item))
|
|
|
{
|
|
|
+ var appItems= item.Split('|');
|
|
|
+ var appItem="";//application
|
|
|
+ var paramsValue="";
|
|
|
+ if(appItems.Length>0)
|
|
|
+ {
|
|
|
+ appItem=appItems[0];
|
|
|
+ for (int i = 1; i < appItems.Length; i++)
|
|
|
+ {
|
|
|
+ paramsValue +=" "+appItems[i];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(string.IsNullOrEmpty(appItem))
|
|
|
+ {
|
|
|
+ throw new Exception( " load appsetting:Dependencies.Apps is null");
|
|
|
+ }
|
|
|
var directory= Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"Packages");
|
|
|
- var appPath=Path.Combine(directory,item);
|
|
|
+ var appPath=Path.Combine(directory,appItem);
|
|
|
if(!File.Exists(appPath))
|
|
|
{
|
|
|
string[] files = System.IO.Directory.GetFiles(directory,"", System.IO.SearchOption.TopDirectoryOnly);
|
|
|
- appPath= files.FirstOrDefault(v=>v.Contains(item));
|
|
|
- }
|
|
|
- ProcessStarter.StartProcess(appPath);
|
|
|
- var arry = item.Split('.');
|
|
|
- if (arry.Length > 0)
|
|
|
- {
|
|
|
- _dependencieNames.Add(arry[0]);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- _dependencieNames.Add(item);
|
|
|
+ appPath= files.FirstOrDefault(v=>v.Contains(appItem));
|
|
|
}
|
|
|
+ ProcessStarter.StartProcess(appPath,paramsValue);
|
|
|
+ _dependencieNames.Add(appItem);
|
|
|
|
|
|
}
|
|
|
}
|