Ejemplo n.º 1
0
        public OneTimeTimer(int milliseconds)
        {
            lockObject = LockManager.CreateObject();

            internalTimer          = new Timer();
            internalTimer.Interval = milliseconds;
        }
Ejemplo n.º 2
0
        public BaseThreadedService(ThreadPriority threadPriority, TimeSpan iterationSleep, TimeSpan iterationTimeOut, TimeSpan startTimeOut)
        {
            this.threadPriority   = threadPriority;
            this.iterationSleep   = iterationSleep;
            this.iterationTimeOut = iterationTimeOut;
            this.startTimeOut     = startTimeOut;
            runningEvent          = new ManualResetEvent(false);

            lockObject = LockManager.CreateObject();
        }
Ejemplo n.º 3
0
 static LoggerExtensions()
 {
     lockObject = LockManager.CreateObject();
     eventSinks = new List <LoggerRelayEventSink>();
 }
Ejemplo n.º 4
0
 static TraceExtensions()
 {
     lockObject = LockManager.CreateObject();
     eventSinks = new List <TraceLogEventSink>();
 }
Ejemplo n.º 5
0
 public ActionQueueService()
 {
     lockObject  = LockManager.CreateObject();
     actionQueue = new Queue <Action>();
 }
Ejemplo n.º 6
0
        static ConsoleTimer()
        {
            lockObject = LockManager.CreateObject();

            timers = new List <ConsoleTimer>();
        }