コード例 #1
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
                };
            }
        }
コード例 #2
0
 public FilterContainer(ITransactionLogFilter transactionLogFilter)
     : this(null, null, null, null, transactionLogFilter)
 {
 }