Exemple #1
0
        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;
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        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();
 }
Exemple #5
0
        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);
            }
        }
Exemple #6
0
 public ExecutionContext(Program program)
 {
     this.Program = program;
     _programExecutor = new ProgramExecutor(this.Program);
     Id = Guid.NewGuid();
 }