public static Assembly GetBusinessLogicAssembly() { string ExecutePath; ExecutePath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); ExecutePath = ExecutePath + "\\" + Configuration.GetKeyValue(Configuration.BusinessLogic) + ".dll"; ExecutePath = ExecutePath.Substring(6); return((assembly == null)?Assembly.LoadFrom(ExecutePath):assembly); }
protected virtual IExecutePath OnCreateExecutePath(JobStartInfo jobStartInfo) { _ = jobStartInfo ?? throw new ArgumentNullException(nameof(jobStartInfo)); if (string.IsNullOrEmpty(jobStartInfo.ExecutionId)) { var newid = this.idGenService.NewId(); return(ExecutePath.RootPath(newid)); } else { return(ExecutePath.RootPath(jobStartInfo.ExecutionId)); } }
private IActionContext CreateActionContext(IDictionary <string, object> inputs) { return(new ActionContext() { ExecuteName = string.Empty, ExecutePath = ExecutePath.RootPath(Guid.NewGuid().ToString()), Logger = new ActionLogger(), ServiceProvider = this, Parameters = new ActionParameters() { Arguments = inputs, }, RuntimeInfo = new ActionRuntime() { WorkingDirectory = System.IO.Path.Combine(Environment.CurrentDirectory, "packs/nodepack"), } }); }