示例#1
0
        private void InvokeResume(IntervalLogger il)
        {
            // BeforePluginSuspend
            Status = KernelStatus.BeforePluginResume;
            using (var iil = new IILogger(il, Status)) {
                // Kernel First
                _KernelLifeCycle.DoBeforePluginResume();
                Parallel.ForEach(
                    _OtherLifeCycles, x => x.DoBeforePluginResume()
                    );
            }

            // PluginResume
            Status = KernelStatus.PluginResume;
            using (var iil = new IILogger(il, Status)) {
                // Only Kernel
                _KernelLifeCycle.DoPluginResume();
            }

            // AfterPluginSuspend
            Status = KernelStatus.AfterPluginResume;
            using (var iil = new IILogger(il, Status)) {
                // Kernel First
                _KernelLifeCycle.DoAfterPluginResume();
                Parallel.ForEach(
                    _OtherLifeCycles, x => x.DoAfterPluginResume()
                    );
            }
        }
示例#2
0
        public InternalIntervalLogger(
			IntervalLogger logger, object title)
        {
            this.Title = title.ToString();
            this.Block = logger.Record;
            this.InterDatas = new List<Any>();

            Stopwatch = new Stopwatch();
            Stopwatch.Start();
        }
示例#3
0
        public InternalIntervalLogger(
            IntervalLogger logger, object title)
        {
            this.Title      = title.ToString();
            this.Block      = logger.Record;
            this.InterDatas = new List <Any>();

            Stopwatch = new Stopwatch();
            Stopwatch.Start();
        }
示例#4
0
        private void InvokeStop(IntervalLogger il)
        {
            // BeforeStop
            Status = KernelStatus.BeforeStop;
            using (var iil = new IILogger(il, Status)) {
                // Kernel First
                _KernelLifeCycle.DoBeforeStop();
                Parallel.ForEach(
                    _OtherLifeCycles, x => x.DoBeforeStop()
                    );
            }

            // PluginStop
            Status = KernelStatus.PluginStop;
            using (var iil = new IILogger(il, Status)) {
                // Only Kernel
                _KernelLifeCycle.DoPluginStop();
            }

            // BuiltinStop
            Status = KernelStatus.BuiltinStop;
            using (var iil = new IILogger(il, Status)) {
                // Only Kernel
                _KernelLifeCycle.DoBuiltinStop();
            }

            // AfterStop
            Status = KernelStatus.AfterStop;
            using (var iil = new IILogger(il, Status)) {
                // Kernel First
                _KernelLifeCycle.DoAfterStop();
                Parallel.ForEach(
                    _OtherLifeCycles, x => x.DoAfterStop()
                    );
            }
        }
示例#5
0
 public IILogger(IntervalLogger logger, object title)
     : base(logger, title)
 {
 }
示例#6
0
 public IILogger(IntervalLogger logger, object title)
     : base(logger, title)
 {
 }