Add plugin options to skip autoreload

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14654 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Giagnocavo committed 2009-08-28 07:57:19 +00:00
1 parent ca8dfda04a
commit c6be531b4b
7 files changed
+55 -19

No files matched your search

@@ -161,14 +161,15 @@ namespace FreeSWITCH {
if (!RunLoadNotify(allTypes)) return false;
// Scripts can specify classes too
AddApiPlugins(allTypes);
AddAppPlugins(allTypes);
var opts = GetOptions(allTypes);
AddApiPlugins(allTypes, opts);
AddAppPlugins(allTypes, opts);
// Add the script executors
var name = Path.GetFileName(fileName);
var aliases = new List<string> { name };
this.ApiExecutors.Add(new ApiPluginExecutor(name, aliases, () => new ScriptApiWrapper(entryPoint)));
this.AppExecutors.Add(new AppPluginExecutor(name, aliases, () => new ScriptAppWrapper(entryPoint)));
this.ApiExecutors.Add(new ApiPluginExecutor(name, aliases, () => new ScriptApiWrapper(entryPoint), opts));
this.AppExecutors.Add(new AppPluginExecutor(name, aliases, () => new ScriptAppWrapper(entryPoint), opts));
return true;
}