public int STAction() { STRunTimeContext ctx = new STRunTimeContext(Directory.GetParent(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)).FullName, string.Empty); WorkFlowScript script = new WorkFlowScript(ctx); script.InitializeComponent(); script.Start(); return 0; }
public int STAction() { AddAssemblyResolver(); STRunTimeContext ctx = new STRunTimeContext(Directory.GetParent(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)).FullName, string.Empty); WorkFlowScript script = new WorkFlowScript(ctx); script.InitializeComponent(); script.Start(); return(0); }
public void NotifyLicenseException(string msg) { try { STRunTimeContext ctx = new STRunTimeContext(Directory.GetParent(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)).FullName, string.Empty); WorkFlowScript script = new WorkFlowScript(ctx); script.InitializeComponent(); script.Context.ReplayClient.OnLicenseFailure(msg); } catch (Exception) { // ToDo: log the error message } }