Esempio n. 1
0
        public Boundary(IO.Context context, int maxWorkPerLoop)
        {
            asyncWatcher = context.CreateAsyncWatcher (ProcessWork);
            asyncWatcher.Start ();

            workQueue = new ConcurrentQueue<Action> ();
            this.maxWorkPerLoop = maxWorkPerLoop;
        }