Example #1
0
        private readonly int _order; //order 0:許可リスト優勢 1:禁止リスト優先

        //リストが無い場合は、allowList及びdenyListはnullでもよい
        //テスト用にlogger=nullも可
        public Relay(IEnumerable <OneDat> allowList, IEnumerable <OneDat> denyList, int order, Logger logger)
        {
            _allowList = new RelayList(allowList, "Allow List", logger);
            _denyList  = new RelayList(denyList, "Denyt List", logger);
            _order     = order;
        }
Example #2
0
        private readonly int _order; //order 0:許可リスト優勢 1:禁止リスト優先

        #endregion Fields

        #region Constructors

        //リストが無い場合は、allowList及びdenyListはnullでもよい
        //テスト用にlogger=nullも可
        public Relay(IEnumerable<OneDat> allowList,IEnumerable<OneDat> denyList,int order,Logger logger)
        {
            _allowList = new RelayList(allowList, "Allow List", logger);
            _denyList = new RelayList(denyList, "Denyt List", logger);
            _order = order;
        }