Beispiel #1
0
        protected override void OnStartProcessing(TelecomScriptInterface tsInterface, CallButler.Telecom.TelecomProviderBase telecomProvider, WOSI.CallButler.Data.DataProviders.CallButlerDataProviderBase dataProvider)
        {
            IMLScript imlScript;

            string moduleData = addonModule.OnStartScript(new CallButler.Service.Plugin.CallButlerScriptContext(tsInterface.IMLInterpreter));

            if (addonModule.ModuleReturnsScriptPath)
            {
                imlScript = IMLScript.OpenScript(moduleData);
            }
            else
            {
                imlScript = IMLScript.LoadFromXML(moduleData);
            }

            tsInterface.IMLInterpreter.StartScript(imlScript, WOSI.Utilities.FileUtils.GetApplicationRelativePath(Properties.Settings.Default.SystemScriptsRootDirectory));
        }