protected AbstractStage(string rootPath, string name, ReportStageType type, CancellationToken cancellationToken) { this.rootPath = rootPath; this.name = name; this.type = type; this.cancellationToken = cancellationToken; }
protected virtual void RaiseProgress(double progress, string stageName, ReportStageType stageType) { ProgressCallback handler = Progress; if (handler != null) { handler(progress, stageName, stageType); } }
public static void TryInvoke(this ProgressCallback callback, double progress, string stageName, ReportStageType stageType) { if (callback == null) { return; } callback(progress, stageName, stageType); }
public GenerationProgressEventArgs(double progress, string stageName, ReportStageType stageType) { this.progress = progress; this.stageName = stageName; this.stageType = stageType; }
protected virtual void RaiseGenerationProgress(double progress, string stageName, ReportStageType stageType) { EventHandler<GenerationProgressEventArgs> handler = GenerationProgress; if (handler != null) { handler(this, new GenerationProgressEventArgs(progress, stageName, stageType)); } }
protected virtual void RaiseGenerationProgress(double progress, string stageName, ReportStageType stageType) { EventHandler <GenerationProgressEventArgs> handler = GenerationProgress; if (handler != null) { handler(this, new GenerationProgressEventArgs(progress, stageName, stageType)); } }
protected DelegateStage(string rootPath, string name, ReportStageType type, CancellationToken cancellationToken, Action<SimpleProgressCallback> runAction) : base(rootPath, name, type,cancellationToken) { this.runAction = runAction; }
protected DelegateStage(string rootPath, string name, ReportStageType type, CancellationToken cancellationToken, Action <SimpleProgressCallback> runAction) : base(rootPath, name, type, cancellationToken) { this.runAction = runAction; }