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));
     }
 }
Esempio n. 2
0
 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"),
         }
     });
 }