public ResultQueue(IDataSubscriber subscriber)
        {
            this._jsonItemsQueue = new Queue<string>();
            this._serializeHelper = new JsonDeserializeHelper(subscriber);

            _enqueuedEvent = new ManualResetEvent(false);
            _workerThread = new Thread(new ThreadStart(PerformDeserilization));
            _workerThread.Start();
        }
Exemple #2
0
        public ResultQueue(IDataSubscriber subscriber)
        {
            this._jsonItemsQueue  = new Queue <string>();
            this._serializeHelper = new JsonDeserializeHelper(subscriber);

            _enqueuedEvent = new ManualResetEvent(false);
            _workerThread  = new Thread(new ThreadStart(PerformDeserilization));
            _workerThread.Start();
        }