示例#1
0
 /// <summary>
 ///     All modules have started up and it is ready to run
 /// </summary>
 public void FinishedStartup()
 {
     if (IsLocalConnector)
     {
         m_database = Framework.Utilities.DataManager.RequestPlugin<ISchedulerDataPlugin>();
     }
 }
示例#2
0
 /// <summary>
 ///     All modules have started up and it is ready to run
 /// </summary>
 public void FinishedStartup()
 {
     if (IsLocalConnector)
     {
         m_database = Framework.Utilities.DataManager.RequestPlugin <ISchedulerDataPlugin> ();
         // if (m_database != null)
         //     m_enabled = true;
     }
 }
示例#3
0
        /// <summary>
        ///     All modules have started up and it is ready to run
        /// </summary>
        public void FinishedStartup ()
        {
            if (IsLocalConnector) {
                m_database = Framework.Utilities.DataManager.RequestPlugin<ISchedulerDataPlugin> ();
                // if (m_database != null)
                //     m_enabled = true;

            }
        }
        /// <summary>
        ///     All modules have started up and it is ready to run
        /// </summary>
        public void FinishedStartup()
        {
            if (!m_doRemoteCalls)
            {
                m_database = Framework.Utilities.DataManager.RequestPlugin<ISchedulerDataPlugin>();
            //                if (m_database != null)
            //                    m_enabled = true;

            }
        }
示例#5
0
        /// <summary>
        ///   All modules have started up and it is ready to run
        /// </summary>
        public void FinishedStartup()
        {
            m_database = DataManager.RequestPlugin<ISchedulerDataPlugin>();
            if (m_database != null) 
                m_enabled = true;

            if (m_enabled)
            {
                // don't want to start to soon
                scheduleTimer.Interval = 60000;
                scheduleTimer.Elapsed += t_Elapsed;
                scheduleTimer.Start();
            }
        }
示例#6
0
        /// <summary>
        ///   All modules have started up and it is ready to run
        /// </summary>
        public void FinishedStartup()
        {
            m_database = DataManager.RequestPlugin <ISchedulerDataPlugin>();
            if (m_database != null)
            {
                m_enabled = true;
            }

            if (m_enabled)
            {
                // don't want to start to soon
                scheduleTimer.Interval = 60000;
                scheduleTimer.Elapsed += t_Elapsed;
                scheduleTimer.Start();
            }
        }
        /// <summary>
        ///     All modules have started up and it is ready to run
        /// </summary>
        public void FinishedStartup()
        {
            if (!m_doRemoteCalls)
            {
                m_database = Framework.Utilities.DataManager.RequestPlugin<ISchedulerDataPlugin>();
                if (m_database != null)
                    m_enabled = true;

                if (m_enabled)
                {
                    // don't want to start to soon
                    scheduleTimer.Interval = 60000;
                    scheduleTimer.Elapsed += t_Elapsed;
                    scheduleTimer.Start();
                }
            }
        }
示例#8
0
        /// <summary>
        ///     All modules have started up and it is ready to run
        /// </summary>
        public void FinishedStartup()
        {
            if (!m_doRemoteCalls)
            {
                m_database = Framework.Utilities.DataManager.RequestPlugin <ISchedulerDataPlugin>();
                if (m_database != null)
                {
                    m_enabled = true;
                }

                if (m_enabled)
                {
                    // don't want to start to soon
                    scheduleTimer.Interval = 60000;
                    scheduleTimer.Elapsed += t_Elapsed;
                    scheduleTimer.Start();
                }
            }
        }
        public void FinishedStartup ()
        {
            moneyModule = m_registry.RequestModuleInterface<IMoneyModule> ();
            if ((moneyModule != null) && moneyModule.IsLocal) //Only register if money is enabled and is local
            {
                m_registry.RegisterModuleInterface<IScheduledMoneyModule> (this);
                eventManager.RegisterEventHandler ("ScheduledPayment", ChargeNext);

                scheduler = m_registry.RequestModuleInterface<IScheduleService> ();
                sched_database = Framework.Utilities.DataManager.RequestPlugin<ISchedulerDataPlugin> ();

                currencySymbol = moneyModule.InWorldCurrencySymbol;

                getStipendConfig ();

                AddCommands ();

                // Set up Timer
                taskTimer.Enabled = false;
                taskTimer.Elapsed += SchedulerTimerElapsed;

                InitializeScheduleTimer ();
            }
        }