Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 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();
 }
Esempio n. 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);
            }
        }
Esempio n. 6
0
 public ExecutionContext(Program program)
 {
     this.Program = program;
     _programExecutor = new ProgramExecutor(this.Program);
     Id = Guid.NewGuid();
 }