public ProgramContext(Program program) : base(program.Name) { Program = program; _programExecutor = new ProgramExecutor(Program); _programExecutor.SequenceStarted += _programExecutor_SequenceStarted; _programExecutor.SequenceEnded += _programExecutor_SequenceEnded; _programExecutor.ProgramStarted += _programExecutor_ProgramStarted; _programExecutor.ProgramEnded += _programExecutor_ProgramEnded; _programExecutor.Message += _programExecutor_Message; _programExecutor.Error += _programExecutor_Error; }
public ProgramContext(Program program) : base(program.Name) { Program = program; _programExecutor = new ProgramExecutor(Program); _programExecutor.SequenceStarted += _programExecutor_SequenceStarted; _programExecutor.SequenceEnded += _programExecutor_SequenceEnded; _programExecutor.ProgramStarted += _programExecutor_ProgramStarted; _programExecutor.ProgramEnded += _programExecutor_ProgramEnded; _programExecutor.Message += _programExecutor_Message; _programExecutor.Error += _programExecutor_Error; }
override protected void Dispose(bool disposing) { if (disposing) { _programExecutor.SequenceStarted -= _programExecutor_SequenceStarted; _programExecutor.SequenceEnded -= _programExecutor_SequenceEnded; _programExecutor.ProgramStarted -= _programExecutor_ProgramStarted; _programExecutor.ProgramEnded -= _programExecutor_ProgramEnded; _programExecutor.Message -= _programExecutor_Message; _programExecutor.Error -= _programExecutor_Error; _programExecutor.Dispose(); _programExecutor = null; // In case we're being disposed by something other than the // act of being released. VixenSystem.Contexts.ReleaseContext(this); } }
public ExecutionContext(Program program) { this.Program = program; _programExecutor = new ProgramExecutor(this.Program); Id = Guid.NewGuid(); }
protected override void Dispose(bool disposing) { if(disposing) { _programExecutor.SequenceStarted -= _programExecutor_SequenceStarted; _programExecutor.SequenceEnded -= _programExecutor_SequenceEnded; _programExecutor.ProgramStarted -= _programExecutor_ProgramStarted; _programExecutor.ProgramEnded -= _programExecutor_ProgramEnded; _programExecutor.Message -= _programExecutor_Message; _programExecutor.Error -= _programExecutor_Error; _programExecutor.Dispose(); _programExecutor = null; // In case we're being disposed by something other than the // act of being released. VixenSystem.Contexts.ReleaseContext(this); } }
public ExecutionContext(Program program) { this.Program = program; _programExecutor = new ProgramExecutor(this.Program); Id = Guid.NewGuid(); }