コード例 #1
0
ファイル: LLUDPServer.cs プロジェクト: jhurliman/simian
        public void FireQueueEmpty(LLAgent agent, ThrottleCategoryFlags categories)
        {
            QueueEmptyCallback callback = OnQueueEmpty;

            if (callback != null)
            {
                callback(agent, categories);
            }
        }
コード例 #2
0
 public AsyncWebGetter(int threadCount = 1, QueueEmptyCallback queueEmptyCallback = null)
 {
     _queueEmptyCallback = queueEmptyCallback;
     //_asyncWebRequestPool = new DispatcherPool("Web Photo Fetching Thread", threadCount, () => new WebClient { CachePolicy = HttpWebRequest.DefaultCachePolicy });
     _asyncWebRequestPool = new DispatcherPool("Web Getter", threadCount, () => new CookieAwareWebClient());
 }