Exemple #1
0
        /// <summary>
        /// Enqueues new raw message to process.
        /// </summary>
        /// <param name="data">Raw message data.</param>
        /// <param name="metadata">Information about received data.</param>
        /// <param name="callback">Callback invoked after processing containing marshalled response messages.</param>
        public void EnqueueDataToProcess(byte[] data, Metadata metadata, ProcessedDataCallback callback)
        {
            _inputDataQueue.Enqueue(data, metadata, callback);

            _processingLock.Set();
        }
Exemple #2
0
            public void EnqueueDataToProcess(byte[] data, Metadata metadata, ProcessedDataCallback callback)
            {
                Array.Reverse(data);

                new Task(() => { callback(data); }).Start();
            }