예제 #1
0
        /// <summary>
        /// Gets the scheduler.
        /// </summary>
        /// <param name="applicationMapPath">
        /// The application map path.
        /// </param>
        /// <param name="connection">
        /// The connection.
        /// </param>
        /// <param name="period">
        /// The period.
        /// </param>
        /// <returns>
        /// </returns>
        /// <remarks>
        /// </remarks>
        public static SimpleScheduler GetScheduler(string applicationMapPath, IDbConnection connection, long period)
        {
            // Singleton
            if (theScheduler == null)
            {
                lock (typeof(CachedScheduler))
                {
                    if (theScheduler == null)
                    {
                        theScheduler = new SimpleScheduler(applicationMapPath, connection, period);
                    }
                }
            }

            return(theScheduler);
        }
예제 #2
0
        /// <summary>
        /// Gets the scheduler.
        /// </summary>
        /// <param name="applicationMapPath">
        /// The application map path.
        /// </param>
        /// <param name="connection">
        /// The connection.
        /// </param>
        /// <param name="period">
        /// The period.
        /// </param>
        /// <returns>
        /// </returns>
        /// <remarks>
        /// </remarks>
        public static SimpleScheduler GetScheduler(string applicationMapPath, IDbConnection connection, long period)
        {
            // Singleton
            if (theScheduler == null)
            {
                lock (typeof(CachedScheduler))
                {
                    if (theScheduler == null)
                    {
                        theScheduler = new SimpleScheduler(applicationMapPath, connection, period);
                    }
                }
            }

            return theScheduler;
        }