/// <summary> /// Create new NpmSync and associate it with this Porcess object /// </summary> /// <param name="obj">Process object</param> /// <returns>NpmSync to track this request</returns> internal static NpmSync AddNpmSync(Process obj) { if (runningNpms == null) { runningNpms = new List<NpmSync>(); } NpmSync sync = new NpmSync(obj); runningNpms.Add(sync); return sync; }
/// <summary> /// Remove the NpmSync object /// </summary> /// <param name="sync">sync object</param> internal static void RemNpmSync(NpmSync sync) { if (sync != null) { runningNpms.Remove(sync); } }