Пример #1
0
 public RunStepResult Failure(BuildSettings settings, string message) => RunStepResult.Failure(settings, this, message);
Пример #2
0
 public virtual bool CanRun(BuildSettings settings, out string reason)
 {
     reason = null;
     return(true);
 }
Пример #3
0
 public RunStepResult Success(BuildSettings settings, IRunInstance instance) => RunStepResult.Success(settings, this, instance);
Пример #4
0
 public abstract RunStepResult Start(BuildSettings settings);
Пример #5
0
 public void Dispose()
 {
     // Work-around for assets that can be garbage collected during a build
     BuildSettings.GCUnPin();
     BuildPipeline.GCUnPin();
 }
Пример #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;
Пример #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));