コード例 #1
0
        /// <summary>
        /// Adds a job to the timer to operate asyncronously.
        /// </summary>
        /// <param name="Schedule">The schedule that this delegate is to be run on.</param>
        /// <param name="f">The delegate to run</param>
        /// <param name="Params">The method parameters to pass if you leave any DateTime parameters unbound, then they will be set with the scheduled run time of the
        /// method.  Any unbound object parameters will get this Job object passed in.</param>
        public void AddAsyncJob(IScheduledItem Schedule, Delegate f, params object[] Params)
        {
            TimerJob Event = new TimerJob(Schedule, new DelegateMethodCall(f, Params));

            Event.SyncronizedEvent = false;
            _Jobs.Add(Event);
        }
コード例 #2
0
 public TimerJob(IScheduledItem schedule, IMethodCall method, string proFileName)
 {
     Schedule        = schedule;
     Method          = method;
     _ExecuteHandler = new ExecuteHandler(ExecuteInternal);
     ProfileName     = proFileName;
 }
コード例 #3
0
        private void _UpdateItem(IScheduledItem item)
        {
            Func <IScheduledItem, IScheduledItemStateObject> newStatedObjectCreator;

            if (_IsItemAProgram(item))
            {
                newStatedObjectCreator = ScheduledItemService.Instance.CreateProgramStateObject;
            }
            else
            {
                newStatedObjectCreator = ScheduledItemService.Instance.CreateSequenceStateObject;
            }

            IScheduledItemStateObject scheduledItemStateObject    = _FindStateObject(item);
            IScheduledItemStateObject newScheduledItemStateObject = newStatedObjectCreator(item);

            if (scheduledItemStateObject == null || newScheduledItemStateObject == null)
            {
                return;
            }

            if (ScheduledItemService.Instance.ScheduledItemQualifiesForExecution(newScheduledItemStateObject))
            {
                _ReplaceItem(scheduledItemStateObject, newScheduledItemStateObject);
            }
            else
            {
                _RemoveItem(scheduledItemStateObject);
                _AddItem(newScheduledItemStateObject);
            }
        }
コード例 #4
0
        public void AddAsyncTask(string key, IScheduledItem Schedule, Delegate f, params object[] Params)
        {
            Task task = new Task(Schedule, new DelegateMethodCall(f, Params));

            task.SyncronizedEvent = false;
            this.container.Add(key, task);
        }
コード例 #5
0
ファイル: Tester.cs プロジェクト: ehsanrashid/ScheduleTimer
        static List <Object> TestList(IScheduledItem item, DateTime dtStart, DateTime dtEnd)
        {
            var list = new List <Object>();

            item.AddEventsInInterval(dtStart, dtEnd, list);
            return(list);
        }
コード例 #6
0
ファイル: Class1.cs プロジェクト: fulte004/efultynsource
        private static ArrayList TestList(IScheduledItem item, DateTime Start, DateTime End)
        {
            ArrayList List = new ArrayList();

            item.AddEventsInInterval(Start, End, List);
            return(List);
        }
コード例 #7
0
        public void Schedule(IScheduledItem item)
        {
            if (item == null)
            {
                return;
            }

            ScheduledItem scheduledItem = item as ScheduledItem;

            if (scheduledItem == null)
            {
                throw new NotSupportedException("Scheduled Item type is not supported by this scheduler");
            }

            if (m_TransactionMode)
            {
                m_ScheduleTransactions.Add(scheduledItem);
            }
            else
            {
                if (m_ScheduledItems.Contains(scheduledItem))
                {
                    throw new ArgumentException(string.Concat("Cannot schedule function ", scheduledItem, " more than once"));
                }
                else
                {
                    m_ScheduledItems.Add(scheduledItem);
                }
            }
        }
コード例 #8
0
 /// <summary>
 /// Add event is used in conjunction with the Elaspsed event handler.
 /// Set the Elapsed handler, add your schedule and call start.
 /// </summary>
 /// <param name="schedule">The schedule to fire the event at.  Adding additional schedules will cause the event to fire whenever either schedule calls for it.</param>
 public void AddScheduleEvent(IScheduledItem schedule)
 {
     if (null == Elapsed)
     {
         throw new ArgumentNullException("schedule", "member variable is null.");
     }
     AddJob(new TimerJob(schedule, new DelegateMethodCall(Elapsed)));
 }
コード例 #9
0
ファイル: Tester.cs プロジェクト: ehsanrashid/ScheduleTimer
        static void TestItem(IScheduledItem item, DateTime input, bool allowExact, DateTime dtExpectedOutput)
        {
            var dtResult = item.NextRunTime(input, allowExact);

            Console.WriteLine(dtResult == dtExpectedOutput
                                  ? "Success"
                                  : String.Format("Failure: Received: {0} Expected: {1}", dtResult, dtExpectedOutput));
        }
コード例 #10
0
 public void AddReportEvent(IScheduledItem Schedule, int reportNo)
 {
     if (Elapsed == null)
     {
         throw new Exception("You must set elapsed before adding Events");
     }
     AddJob(new TimerJob(Schedule, new DelegateMethodCall(Handler, Elapsed, reportNo), ProfileName));
 }
コード例 #11
0
 public void AddReportEvent(IScheduledItem schedule, int reportNo)
 {
     if (null == Elapsed)
     {
         throw new Exception("You must set elapsed before adding Events");
     }
     AddJob(new TimerJob(schedule, new DelegateMethodCall(Handler, Elapsed, reportNo)));
 }
コード例 #12
0
ファイル: ScheduleTimer.cs プロジェクト: dengliyan/XUtils
 public void AddEvent(string key, IScheduledItem Schedule)
 {
     if (this.Elapsed == null)
     {
         throw new ArgumentNullException("Elapsed", "member variable is null.");
     }
     base.AddTask(key, new Task(Schedule, new DelegateMethodCall(this.Elapsed)));
 }
コード例 #13
0
        public void UpdateProgram(IScheduledItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            _UpdateItem(item);
        }
コード例 #14
0
        /// <summary>
        /// Adds a job to the timer to operate asyncronously.
        /// </summary>
        /// <param name="schedule">The schedule that this delegate is to be run on.</param>
        /// <param name="func">The delegate to run</param>
        /// <param name="parameters">The method parameters to pass if you leave any DateTime parameters unbound, then they will be set with the scheduled run time of the
        /// method.  Any unbound object parameters will get this Job object passed in.</param>
        public void AddAsyncJob(IScheduledItem schedule, Delegate func, params object[] parameters)
        {
            var timerJob = new TimerJob(schedule, new DelegateMethodCall(func, parameters))
            {
                IsSyncronized = false
            };

            _CollJobs.Add(timerJob);
        }
コード例 #15
0
        /// <summary>
        /// Add event is used in conjunction with the Elaspsed event handler.  Set the Elapsed handler, add your schedule and call start.
        /// </summary>
        /// <param name="Schedule">The schedule to fire the event at.  Adding additional schedules will cause the event to fire whenever either schedule calls for it.</param>
        public void AddEvent(IScheduledItem Schedule)
        {
            if (Elapsed == null)
            {
                throw new ArgumentNullException("Elapsed", "member variable is null.");
            }

            AddJob(new TimerJob(Schedule, new DelegateMethodCall(Elapsed)));
        }
コード例 #16
0
        public void RemoveProgram(IScheduledItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            _RemoveItem(_FindStateObject(item));
        }
コード例 #17
0
        public static void Register(this ScheduleTimer timer, string key, IScheduledRule rule, Delegate @delegate, params object[] args)
        {
            IScheduledItem scheduledItem = SchedulerFactory.Provider(rule);

            if (scheduledItem == null)
            {
                return;
            }
            timer.AddAsyncTask(key, scheduledItem, @delegate, args);
        }
コード例 #18
0
        public void AddProgram(IScheduledItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            IScheduledItemStateObject scheduledProgram = ScheduledItemService.Instance.CreateProgramStateObject(item);

            _AddItem(scheduledProgram);
        }
コード例 #19
0
        public void AddSequence(IScheduledItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            IScheduledItemStateObject scheduledSequence = ScheduledItemService.Instance.CreateSequenceStateObject(item);

            _AddItem(scheduledSequence);
        }
コード例 #20
0
        public void AddAsyncReportEvent(IScheduledItem Schedule, int reportNo)
        {
            if (Elapsed == null)
            {
                throw new Exception("You must set elapsed before adding Events");
            }
            TimerJob Event = new TimerJob(Schedule, new DelegateMethodCall(Handler, Elapsed, reportNo), ProfileName);

            Event.SyncronizedEvent = false;
            AddJob(Event);
        }
コード例 #21
0
 private void _AddItem(IScheduledItem item)
 {
     if (_IsItemAProgram(item))
     {
         AddProgram(item);
     }
     else
     {
         AddSequence(item);
     }
 }
コード例 #22
0
 private void _AddScheduledItemToStateMachine(IScheduledItem scheduledItem)
 {
     if (scheduledItem.ItemFilePath.EndsWith(Program.Extension))
     {
         _stateMachine.AddProgram(scheduledItem);
     }
     else
     {
         _stateMachine.AddSequence(scheduledItem);
     }
     // Otherwise don't add it.
 }
コード例 #23
0
ファイル: ReportTimer.cs プロジェクト: dengliyan/XUtils
 public void AddReportEvent(string key, IScheduledItem Schedule, int reportNo)
 {
     if (this.Elapsed == null)
     {
         throw new Exception("You must set elapsed before adding Events");
     }
     base.AddTask(key, new Task(Schedule, new DelegateMethodCall(ReportTimer.Handler, new object[]
     {
         this.Elapsed,
         reportNo
     })));
 }
コード例 #24
0
        public ScheduledSequence(IScheduledItem item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }

            OriginatingItem = item;

            Start = ScheduledItemService.Instance.CalculateConcreteStartDateTime(item);
            End   = ScheduledItemService.Instance.CalculateConcreteEndDateTime(item);
        }
コード例 #25
0
        public void AddAsyncReportEvent(IScheduledItem schedule, int reportNo)
        {
            if (null == Elapsed)
            {
                throw new Exception("You must set elapsed before adding Events");
            }
            var Event = new TimerJob(schedule, new DelegateMethodCall(Handler, Elapsed, reportNo))
            {
                IsSyncronized = false
            };

            AddJob(Event);
        }
コード例 #26
0
ファイル: Class1.cs プロジェクト: fulte004/efultynsource
        private static void TestItem(IScheduledItem item, DateTime input, bool AllowExact, DateTime ExpectedOutput)
        {
            DateTime Result = item.NextRunTime(input, AllowExact);

            if (Result == ExpectedOutput)
            {
                Console.WriteLine("Success");
            }
            else
            {
                Console.WriteLine(string.Format("Failure: Received: {0} Expected: {1}", Result, ExpectedOutput));
            }
        }
コード例 #27
0
        public static void Register(this ScheduleTimer timer, string key, IList <IScheduledRule> rules, Delegate @delegate, params object[] args)
        {
            EventQueue eventQueue = new EventQueue();

            foreach (IScheduledRule current in rules)
            {
                IScheduledItem scheduledItem = SchedulerFactory.Provider(current);
                if (scheduledItem != null)
                {
                    eventQueue.Add(scheduledItem);
                }
            }
            timer.AddAsyncTask(key, eventQueue, @delegate, args);
        }
コード例 #28
0
ファイル: SchedulerFactory.cs プロジェクト: dengliyan/XUtils
        private static IScheduledItem BaseRule(ScheduledRule rule)
        {
            if (rule == null)
            {
                return(null);
            }
            IScheduledItem result = null;

            try
            {
                string type;
                switch (type = rule.Rule.Type)
                {
                case "BySecond":
                case "ByMinute":
                case "Hourly":
                case "Daily":
                case "Weekly":
                case "Monthly":
                    result = new ScheduledTime(rule.Rule.Type, rule.Rule.Offest);
                    break;

                case "BySleep":
                    if (rule.Count == 0 && (rule.End == DateTime.MaxValue || rule.End == DateTime.MinValue))
                    {
                        result = new SimpleInterval(DateTime.Now, TimeSpan.Parse(rule.Rule.Offest));
                    }
                    else
                    {
                        if (rule.Count > 0)
                        {
                            result = new SimpleInterval(DateTime.Now, TimeSpan.Parse(rule.Rule.Offest), rule.Count);
                        }
                        else
                        {
                            if (rule.End != DateTime.MaxValue)
                            {
                                result = new SimpleInterval(DateTime.Now, TimeSpan.Parse(rule.Rule.Offest), rule.End);
                            }
                        }
                    }
                    break;
                }
            }
            catch
            {
            }
            return(result);
        }
コード例 #29
0
        public void Unschedule(IScheduledItem item)
        {
            ScheduledItem scheduledItem = item as ScheduledItem;

            if (scheduledItem != null)
            {
                if (this.m_TransactionMode)
                {
                    this.m_UnscheduleTransactions.Add(scheduledItem);
                }
                else if (!this.RemovedScheduledItemAt(this.m_ScheduledItems.IndexOf(scheduledItem)))
                {
                    throw new ArgumentException("Cannot unschedule unknown scheduled function " + scheduledItem);
                }
            }
        }
コード例 #30
0
        public void Add(IScheduledItem time)
        {
            object obj;

            Monitor.Enter(obj = EventQueue.syncObject);
            try
            {
                if (time != null)
                {
                    this.container.Add(time);
                }
            }
            finally
            {
                Monitor.Exit(obj);
            }
        }
コード例 #31
-1
ファイル: TimerJob.cs プロジェクト: ruslanlyalko/DA
 public TimerJob(IScheduledItem schedule, IMethodCall method, string proFileName)
 {
     Schedule = schedule;
     Method = method;
     _ExecuteHandler = new ExecuteHandler(ExecuteInternal);
        ProfileName = proFileName;
 }
コード例 #32
-1
        public void AddProgram(IScheduledItem item)
        {
            if(item == null) throw new ArgumentNullException("item");

            IScheduledItemStateObject scheduledProgram = ScheduledItemService.Instance.CreateProgramStateObject(item);
            _AddItem(scheduledProgram);
        }
コード例 #33
-1
        public void AddSequence(IScheduledItem item)
        {
            if(item == null) throw new ArgumentNullException("item");

            IScheduledItemStateObject scheduledSequence = ScheduledItemService.Instance.CreateSequenceStateObject(item);
            _AddItem(scheduledSequence);
        }
コード例 #34
-1
 /// <summary>
 /// Adds a job to the timer to operate asyncronously.
 /// </summary>
 /// <param name="schedule">The schedule that this delegate is to be run on.</param>
 /// <param name="func">The delegate to run</param>
 /// <param name="parameters">The method parameters to pass if you leave any DateTime parameters unbound, then they will be set with the scheduled run time of the 
 /// method.  Any unbound object parameters will get this Job object passed in.</param>
 public void AddAsyncJob(IScheduledItem schedule, Delegate func, params object[] parameters)
 {
     var timerJob = new TimerJob(schedule, new DelegateMethodCall(func, parameters))
                    {
                        IsSyncronized = false
                    };
     _CollJobs.Add(timerJob);
 }
コード例 #35
-1
		public void AddAsyncReportEvent(IScheduledItem Schedule, int reportNo)
		{
			if (Elapsed == null)
				throw new Exception("You must set elapsed before adding Events");
			TimerJob Event = new TimerJob(Schedule, new DelegateMethodCall(Handler, Elapsed, reportNo));
			Event.SyncronizedEvent = false;
			AddJob(Event);
		}
コード例 #36
-1
        public ScheduledProgram(IScheduledItem item)
        {
            if(item == null) throw new ArgumentNullException("item");

            OriginatingItem = item;

            Start = ScheduledItemService.Instance.CalculateConcreteStartDateTime(item);
            End = ScheduledItemService.Instance.CalculateConcreteEndDateTime(item);
        }
コード例 #37
-1
ファイル: ReportTimer.cs プロジェクト: erashid/ScheduleTimer
        public void AddAsyncReportEvent(IScheduledItem schedule, int reportNo)
        {
            if (null == Elapsed) throw new Exception("You must set elapsed before adding Events");
            var Event = new TimerJob(schedule, new DelegateMethodCall(Handler, Elapsed, reportNo))
                        {
                            IsSyncronized = false
                        };

            AddJob(Event);
        }
コード例 #38
-1
ファイル: SimpleScheduleModule.cs プロジェクト: stewmc/vixen
		private void _AddScheduledItemToStateMachine(IScheduledItem scheduledItem)
		{
			if (scheduledItem.ItemFilePath.EndsWith(Program.Extension)) {
				_stateMachine.AddProgram(scheduledItem);
			}
			else {
				_stateMachine.AddSequence(scheduledItem);
			}
			// Otherwise don't add it.
		}
コード例 #39
-1
ファイル: ScheduleTimer.cs プロジェクト: kaotul/autotrade
        /// <summary>
        /// Add event is used in conjunction with the Elaspsed event handler.  Set the Elapsed handler, add your schedule and call start.
        /// </summary>
        /// <param name="Schedule">The schedule to fire the event at.  Adding additional schedules will cause the event to fire whenever either schedule calls for it.</param>
        public void AddEvent(IScheduledItem Schedule)
        {
            if (Elapsed == null)
                throw new ArgumentNullException("Elapsed", "member variable is null.");

            AddJob(new TimerJob(Schedule, new DelegateMethodCall(Elapsed)));
        }
コード例 #40
-1
 private void _AddScheduledItemToStateMachine(IScheduledItem scheduledItem)
 {
     if (SequenceTypeService.Instance.IsValidSequenceFileType(scheduledItem.ItemFilePath))
     {
         _stateMachine.AddSequence(scheduledItem);
     }
     else if (scheduledItem.ItemFilePath.EndsWith(Program.Extension))
     {
         _stateMachine.AddProgram(scheduledItem);
     }
     // Otherwise don't add it.
 }
コード例 #41
-1
 /// <summary>
 /// Adds a job to the timer.  This method passes in a delegate and the parameters similar to the Invoke method of windows forms.
 /// </summary>
 /// <param name="schedule">The schedule that this delegate is to be run on.</param>
 /// <param name="func">The delegate to run</param>
 /// <param name="parameters">The method parameters to pass if you leave any DateTime parameters unbound, then they will be set with the scheduled run time of the 
 /// method.  Any unbound object parameters will get this Job object passed in.</param>
 public void AddJob(IScheduledItem schedule, Delegate func, params object[] parameters)
 {
     _CollJobs.Add(new TimerJob(schedule, new DelegateMethodCall(func, parameters)));
 }
コード例 #42
-1
 public IScheduledItem CreateScheduledItem(IScheduledItem scheduledItem)
 {
     return new ScheduledItem(scheduledItem.Id, scheduledItem.ItemFilePath, scheduledItem.DayOfWeek, scheduledItem.StartTime, scheduledItem.RunLength);
 }
コード例 #43
-1
 public IScheduledItemStateObject CreateSequenceStateObject(IScheduledItem item)
 {
     return new ScheduledSequence(item);
 }
コード例 #44
-1
        public void RemoveSequence(IScheduledItem item)
        {
            if(item == null) throw new ArgumentNullException("item");

            _RemoveItem(_FindStateObject(item));
        }
コード例 #45
-1
ファイル: TimerJob.cs プロジェクト: erashid/ScheduleTimer
 public TimerJob(IScheduledItem schedule, IMethodCall method)
 {
     Schedule = schedule;
     Method = method;
     _ExecuteHandler = ExecuteInternal;
 }
コード例 #46
-1
        private void _UpdateItem(IScheduledItem item)
        {
            Func<IScheduledItem, IScheduledItemStateObject> newStatedObjectCreator;

            if(_IsItemAProgram(item)) {
                newStatedObjectCreator = ScheduledItemService.Instance.CreateProgramStateObject;
            } else {
                newStatedObjectCreator = ScheduledItemService.Instance.CreateSequenceStateObject;
            }

            IScheduledItemStateObject scheduledItemStateObject = _FindStateObject(item);
            IScheduledItemStateObject newScheduledItemStateObject = newStatedObjectCreator(item);

            if(scheduledItemStateObject == null || newScheduledItemStateObject == null) return;

            if(ScheduledItemService.Instance.ScheduledItemQualifiesForExecution(newScheduledItemStateObject)) {
                _ReplaceItem(scheduledItemStateObject, newScheduledItemStateObject);
            } else {
                _RemoveItem(scheduledItemStateObject);
                _AddItem(newScheduledItemStateObject);
            }
        }
コード例 #47
-1
 public DateTime CalculateConcreteEndDateTime(IScheduledItem item)
 {
     return CalculateConcreteStartDateTime(item) + item.RunLength;
 }
コード例 #48
-1
ファイル: BlockWrapper.cs プロジェクト: DanielCruz4th/xocsatt
 public BlockWrapper(IScheduledItem item, string timeBase, string beginOffset, string endOffset)
 {
     _item = item;
     _begin = new ScheduledTime(timeBase, beginOffset);
     _end = new ScheduledTime(timeBase, endOffset);
 }
コード例 #49
-1
 public void RegisterItem(IScheduledItem item)
 {
     RegisteredItems.Add(item);
 }
コード例 #50
-1
ファイル: BlockWrapper.cs プロジェクト: kaotul/autotrade
 public BlockWrapper(IScheduledItem item, string StrBase, string BeginOffset, string EndOffset)
 {
     _Item = item;
     _Begin = new ScheduledTime(StrBase, BeginOffset);
     _End = new ScheduledTime(StrBase, EndOffset);
 }
コード例 #51
-1
ファイル: BlockFilter.cs プロジェクト: erashid/ScheduleTimer
 public BlockFilter(IScheduledItem item, String eventTime, String offsetBegin, String offsetEnd)
 {
     _Item = item;
     _Begin = new ScheduledTime(eventTime, offsetBegin);
     _End = new ScheduledTime(eventTime, offsetEnd);
 }
コード例 #52
-1
 private bool _IsItemAProgram(IScheduledItem item)
 {
     return item.ItemFilePath.EndsWith(Program.Extension);
 }
コード例 #53
-1
ファイル: ScheduleTimer.cs プロジェクト: kaotul/autotrade
 /// <summary>
 /// Adds a job to the timer to operate asyncronously.
 /// </summary>
 /// <param name="Schedule">The schedule that this delegate is to be run on.</param>
 /// <param name="f">The delegate to run</param>
 /// <param name="Params">The method parameters to pass if you leave any DateTime parameters unbound, then they will be set with the scheduled run time of the 
 /// method.  Any unbound object parameters will get this Job object passed in.</param>
 public void AddAsyncJob(IScheduledItem Schedule, Delegate f, params object[] Params)
 {
     TimerJob Event = new TimerJob(Schedule, new DelegateMethodCall(f, Params));
     Event.SyncronizedEvent = false;
     _Jobs.Add(Event);
 }
コード例 #54
-1
 public DateTime CalculateConcreteStartDateTime(IScheduledItem item)
 {
     return new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, (int)item.StartTime.TotalHours, item.StartTime.Minutes, item.StartTime.Seconds);
 }
コード例 #55
-1
ファイル: ScheduleTimer.cs プロジェクト: kaotul/autotrade
 /// <summary>
 /// Adds a job to the timer.  This method passes in a delegate and the parameters similar to the Invoke method of windows forms.
 /// </summary>
 /// <param name="Schedule">The schedule that this delegate is to be run on.</param>
 /// <param name="f">The delegate to run</param>
 /// <param name="Params">The method parameters to pass if you leave any DateTime parameters unbound, then they will be set with the scheduled run time of the 
 /// method.  Any unbound object parameters will get this Job object passed in.</param>
 public void AddJob(IScheduledItem Schedule, Delegate f, params object[] Params)
 {
     _Jobs.Add(new TimerJob(Schedule, new DelegateMethodCall(f, Params)));
 }
コード例 #56
-1
 public IScheduledItemStateObject CreateProgramStateObject(IScheduledItem item)
 {
     return new ScheduledProgram(item);
 }
コード例 #57
-1
		public EventInstance(DateTime time, IScheduledItem scheduleItem, object data)
		{
			Time = time;
			ScheduleItem = scheduleItem;
			Data = data;
		}
コード例 #58
-1
ファイル: ReportTimer.cs プロジェクト: erashid/ScheduleTimer
 public void AddReportEvent(IScheduledItem schedule, int reportNo)
 {
     if (null == Elapsed) throw new Exception("You must set elapsed before adding Events");
     AddJob(new TimerJob(schedule, new DelegateMethodCall(Handler, Elapsed, reportNo)));
 }
コード例 #59
-1
ファイル: EventQueue.cs プロジェクト: kaotul/autotrade
 /// <summary>
 /// Adds a ScheduledTime to the queue.
 /// </summary>
 /// <param name="time">The scheduled time to add</param>
 public void Add(IScheduledItem time)
 {
     _List.Add(time);
 }
コード例 #60
-1
 public EventComparable(DateTime datetime, IScheduledItem scheduleItem, Object data)
 {
     DateTime = datetime;
     ScheduleItem = scheduleItem;
     Data = data;
 }