Ejemplo n.º 1
0
 public CronEventEntry(string Name, CronEventHandler handler, CronJob Cronjob, bool Unique, CronLimit limit)
 {
     // infer a name from the handler passed in (if one was not supplied)
     m_Name    = (Name != null) ? Name : (handler != null && handler.Method != null && handler.Method.Name != null) ? handler.Method.Name : "Unknown";
     m_Unique  = Unique;
     m_Handler = handler;
     m_Cronjob = Cronjob;
     m_Limit   = limit;
 }
Ejemplo n.º 2
0
			public CronEventEntry(string Name, CronEventHandler handler, CronJob Cronjob, bool Unique, CronLimit limit)
			{
				// infer a name from the handler passed in (if one was not supplied)
				m_Name = (Name != null) ? Name : (handler != null && handler.Method != null && handler.Method.Name != null) ? handler.Method.Name : "Unknown"; 
				m_Unique = Unique;
				m_Handler = handler;
				m_Cronjob = Cronjob;
				m_Limit = limit;
			}
Ejemplo n.º 3
0
 public static void Register(string Name, CronEventHandler handler, string CronSpec, bool Unique, CronLimit limit)
 {
     lock (m_Handlers.SyncRoot)
     {
         m_Handlers.Add(new CronEventEntry(Name, handler, new CronJob(CronSpec), Unique, limit));
     }
 }
Ejemplo n.º 4
0
		public static void Register(string Name, CronEventHandler handler, string CronSpec, bool Unique, CronLimit limit)
		{
			lock (m_Handlers.SyncRoot)
			{
				m_Handlers.Add(new CronEventEntry(Name, handler, new CronJob(CronSpec), Unique, limit));
			}
		}