public GenerationPhaseDisposalWrapper(IGenerationPhase phase, IDisposable disposable) { Contracts.Requires.That(phase != null); Contracts.Requires.That(disposable != null); this.Phase = phase; this.disposable = disposable; this.Completion = this.CompleteAsync(); }
public ExceptionFilteredPhase(IGenerationPhase phase) { Contracts.Requires.That(phase != null); this.phase = phase; this.Progress = this.phase.Progress.Catch((Exception error) => Observable.Throw <GenerationPhaseProgress>( error as StageGenerationException ?? new StageGenerationException(this, this.ErrorMessage, error))); this.Completion = this.CompleteAsync(); }
public GenerationPhaseWrapper(IGenerationPhase phase) { Contracts.Requires.That(phase != null); this.Phase = phase; }