Esempio n. 1
0
 private SchemaRecordCheck(SchemaRuleAccess ruleAccess, IndexAccessors indexAccessors, IDictionary <long, DynamicRecord> indexObligations, IDictionary <long, DynamicRecord> constraintObligations, IDictionary <SchemaRule, DynamicRecord> verifiedRulesWithRecords, CheckStrategy strategy)
 {
     this.RuleAccess                = ruleAccess;
     this._indexAccessors           = indexAccessors;
     this._indexObligations         = indexObligations;
     this._constraintObligations    = constraintObligations;
     this._verifiedRulesWithRecords = verifiedRulesWithRecords;
     this._strategy = strategy;
 }
Esempio n. 2
0
 public SchemaRecordCheck(SchemaRuleAccess ruleAccess, IndexAccessors indexAccessors)
 {
     this.RuleAccess                = ruleAccess;
     this._indexAccessors           = indexAccessors;
     this._indexObligations         = new Dictionary <long, DynamicRecord>();
     this._constraintObligations    = new Dictionary <long, DynamicRecord>();
     this._verifiedRulesWithRecords = new Dictionary <SchemaRule, DynamicRecord>();
     this._strategy = new RulesCheckStrategy(this);
 }
Esempio n. 3
0
        private static void Main(string[] args)
        {
            PaymentStrategy paymentStrategy1 = new CashStrategy();
            PaymentStrategy paymentStrategy2 = new CheckStrategy();
            PaymentStrategy paymentStrategy3 = new DebitCardStrategy();

            paymentStrategy1.Pay(100);
            paymentStrategy2.Pay(150);
            paymentStrategy3.Pay(300);

            Console.ReadKey();
        }
Esempio n. 4
0
 internal SomethingResourcePool(int minSize, CheckStrategy checkStrategy, StatefulMonitor stateMonitor) : base(minSize, checkStrategy, stateMonitor)
 {
 }