using console_opcua_sgdn_tornio.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Channels;

namespace console_opcua_sgdn_tornio.Controllers
{
    internal class JobChannel
    {
        public static readonly Channel<OpcUaQueue> Channel =
            System.Threading.Channels.Channel.CreateBounded<OpcUaQueue>(
                new BoundedChannelOptions(100)
                {
                    FullMode = BoundedChannelFullMode.Wait,
                    SingleReader = true,
                    SingleWriter = false
                });
    }
}
