コード例 #1
0
 public exchange(int sumAuditLimits = limit, int maxRatingContactor = raiting)
 {
     this.sumAuditLimits          = sumAuditLimits;
     this.maxAuditRatingContactor = maxRatingContactor;
     auditor    = new audit("auditor");
     protocol   = new protocol();
     dealevent += protocol.addProtocol;
 }
コード例 #2
0
        static void Main(string[] args)
        {
            exchange temp   = new exchange();
            protocol hendl1 = new protocol();
            audit    hend2  = new audit();

            temp.onPattern += hendl1.prot;
            temp.onPattern += hend2.doaudit;
            temp.onPattern += temp.deal;
            temp.bid("123", 7, 1, true);
            temp.bid("123", 1, 3, false);
            temp.bid("123", 5, 10, false);
            temp.bid("123", 3, 3, true);
            temp.bid("123", 9, 2, true);
            Console.ReadLine();
        }