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();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        public GenerationPhaseWrapper(IGenerationPhase phase)
        {
            Contracts.Requires.That(phase != null);

            this.Phase = phase;
        }