@nsshunt/stsrunnerframework 1.0.63 → 1.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2009,7 +2009,6 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2009
2009
  }
2010
2010
  chalk$1.level = 3;
2011
2011
  class STSWorkerManager {
2012
- //@@#rest01Client: Rest01Client
2013
2012
  constructor(options) {
2014
2013
  __privateAdd(this, _STSWorkerManager_instances);
2015
2014
  //#agentSession: string = null;
@@ -2445,12 +2444,61 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2445
2444
  }
2446
2445
  return busyWorker;
2447
2446
  });
2447
+ __publicField(this, "StartAllWorkers", async () => {
2448
+ const promArray = [];
2449
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2450
+ promArray.push(stsWorker.Start());
2451
+ }
2452
+ return await Promise.all(promArray);
2453
+ });
2448
2454
  __publicField(this, "StopAllWorkers", async () => {
2449
2455
  const promArray = [];
2450
2456
  for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2451
2457
  promArray.push(stsWorker.Stop());
2452
2458
  }
2453
- await Promise.all(promArray);
2459
+ return await Promise.all(promArray);
2460
+ });
2461
+ __publicField(this, "PauseAllWorkers", async () => {
2462
+ const promArray = [];
2463
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2464
+ promArray.push(stsWorker.Pause());
2465
+ }
2466
+ return await Promise.all(promArray);
2467
+ });
2468
+ __publicField(this, "ResumeAllWorkers", async () => {
2469
+ const promArray = [];
2470
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2471
+ promArray.push(stsWorker.Resume());
2472
+ }
2473
+ return await Promise.all(promArray);
2474
+ });
2475
+ __publicField(this, "ExecuteAllWorkers", async () => {
2476
+ const promArray = [];
2477
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2478
+ promArray.push(stsWorker.Execute());
2479
+ }
2480
+ return await Promise.all(promArray);
2481
+ });
2482
+ __publicField(this, "ResetAllWorkers", async () => {
2483
+ const promArray = [];
2484
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2485
+ promArray.push(stsWorker.Reset());
2486
+ }
2487
+ return await Promise.all(promArray);
2488
+ });
2489
+ __publicField(this, "UpdateAllWorkers", async (options) => {
2490
+ const promArray = [];
2491
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2492
+ promArray.push(stsWorker.UpdateOptions(options));
2493
+ }
2494
+ return await Promise.all(promArray);
2495
+ });
2496
+ __publicField(this, "TerminateAllWorkers", async () => {
2497
+ const promArray = [];
2498
+ for (const [, stsWorker] of Object.entries(this.WorkersEx)) {
2499
+ promArray.push(stsWorker.Terminate());
2500
+ }
2501
+ return await Promise.all(promArray);
2454
2502
  });
2455
2503
  if (options) {
2456
2504
  __privateSet(this, _options4, options);