示例#1
0
 public FilterContainer(
     ITransactionFilter transactionFilter,
     ITransactionReceiptFilter transactionReceiptFilter,
     ITransactionAndReceiptFilter transactionAndReceiptFilter)
     : this(null, transactionFilter, transactionReceiptFilter, transactionAndReceiptFilter)
 {
 }
示例#2
0
        public FilterContainer(
            IBlockFilter blockFilter             = null,
            ITransactionFilter transactionFilter = null,
            ITransactionReceiptFilter transactionReceiptFilter       = null,
            ITransactionAndReceiptFilter transactionAndReceiptFilter = null,
            ITransactionLogFilter transactionLogFilter = null)
        {
            if (blockFilter != null)
            {
                BlockFilters = new List <IBlockFilter>(1)
                {
                    blockFilter
                };;
            }

            if (transactionFilter != null)
            {
                TransactionFilters = new List <ITransactionFilter>(1)
                {
                    transactionFilter
                };
            }

            if (transactionReceiptFilter != null)
            {
                TransactionReceiptFilters = new List <ITransactionReceiptFilter>(1)
                {
                    transactionReceiptFilter
                };
            }

            if (transactionAndReceiptFilter != null)
            {
                TransactionAndReceiptFilters = new List <ITransactionAndReceiptFilter>(1)
                {
                    transactionAndReceiptFilter
                };
            }

            if (transactionLogFilter != null)
            {
                TransactionLogFilters = new List <ITransactionLogFilter>(1)
                {
                    transactionLogFilter
                };
            }
        }