コード例 #1
0
 /// <summary>
 /// Creates a new job based on the given job without any environment variables.
 /// </summary>
 /// <param name="job">The original job</param>
 /// <returns>The new job which doesn't have any environment variables</returns>
 public static Job WithoutEnvironmentVariables(this Job job) => job.WithEnvironmentVariables(Array.Empty <EnvironmentVariable>());
コード例 #2
0
 public static Job With(this Job job, IReadOnlyList <EnvironmentVariable> environmentVariables) => job.WithEnvironmentVariables(environmentVariables.ToArray());