コード例 #1
0
 /// <summary>
 /// Get the value of the first build artifact that is assignable to type <typeparamref name="T"/>.
 /// </summary>
 /// <typeparam name="T">The type of the build artifact.</typeparam>
 /// <param name="config">The build configuration that was used to store the build artifact.</param>
 /// <returns>The build artifact if found, otherwise <see langword="null"/>.</returns>
 public T GetLastBuildArtifact <T>() where T : class, IBuildArtifact => BuildArtifacts.GetBuildArtifact <T>(this);
コード例 #2
0
 /// <summary>
 /// Get the last build result for this build configuration.
 /// </summary>
 /// <param name="config">The build configuration that was used to store the build artifact.</param>
 /// <returns>The build result if found, otherwise <see langword="null"/>.</returns>
 public BuildPipelineResult GetLastBuildResult() => BuildArtifacts.GetBuildResult(this);
コード例 #3
0
 /// <summary>
 /// Get the value of the first build artifact that is assignable to type <see cref="Type"/>.
 /// </summary>
 /// <param name="config">The build configuration that was used to store the build artifact.</param>
 /// <param name="type">The type of the build artifact.</param>
 /// <returns>The build artifact if found, otherwise <see langword="null"/>.</returns>
 public IBuildArtifact GetLastBuildArtifact(Type type) => BuildArtifacts.GetBuildArtifact(this, type);