Beispiel #1
0
        public void Index()
        {
            var item = _queue.Fetch();

            _queue.Put(new SampleQueueItem()
            {
                Field1 = "sfddsf",
                Field2 = 4
            });
        }
Beispiel #2
0
        public IActionResult Index()
        {
            _backgroundJobQueue.PutJob <TestBackgoundTask>("Hello world");
            var item = _queue.Fetch();

            if (item != null)
            {
                _queue.Acknowledge(item.Id);
            }

            _queue.Put(new SampleQueueItem()
            {
                Field1 = "sfddsf",
                Field2 = 4
            });

            return(View());
        }