Example #1
0
 public RunStepResult Failure(BuildSettings settings, string message) => RunStepResult.Failure(settings, this, message);
Example #2
0
 public virtual bool CanRun(BuildSettings settings, out string reason)
 {
     reason = null;
     return(true);
 }
Example #3
0
 public RunStepResult Success(BuildSettings settings, IRunInstance instance) => RunStepResult.Success(settings, this, instance);
Example #4
0
 public abstract RunStepResult Start(BuildSettings settings);
 public void Dispose()
 {
     // Work-around for assets that can be garbage collected during a build
     BuildSettings.GCUnPin();
     BuildPipeline.GCUnPin();
 }
Example #6
0
 /// <summary>
 /// Get the last <see cref="BuildPipelineResult"/> from building the <see cref="BuildSettings"/> specified.
 /// </summary>
 /// <param name="settings">The <see cref="BuildSettings"/> that was used to store the <see cref="IBuildArtifact"/>.</param>
 /// <returns>The <see cref="BuildPipelineResult"/> if found, <see langword="null"/> otherwise.</returns>
 public static BuildPipelineResult GetBuildResult(BuildSettings settings) => GetArtifactData(settings)?.Result;
Example #7
0
 /// <summary>
 /// Get the value of the first <see cref="IBuildArtifact"/> that is assignable to type <typeparamref name="T"/>.
 /// </summary>
 /// <typeparam name="T">The type of the <see cref="IBuildArtifact"/>.</typeparam>
 /// <param name="settings">The <see cref="BuildSettings"/> that was used to store the <see cref="IBuildArtifact"/>.</param>
 /// <returns>The <see cref="IBuildArtifact"/> if found, <see langword="null"/> otherwise.</returns>
 public static T GetBuildArtifact <T>(BuildSettings settings) where T : class, IBuildArtifact => (T)GetBuildArtifact(settings, typeof(T));