예제 #1
0
    static void Mainz()
    {
        Console.WriteLine("Start");
        Instrumentation.RegisterAssembly(typeof(Appzzz).Assembly);
        Console.WriteLine("Finish");
        DecimalSample instance = new DecimalSample();

        instance.amount    = Decimal.Parse("7.310000");
        instance.Published = true;
        Console.WriteLine("Amount = {0}", instance.amount);
        Console.ReadLine();
        instance.Published = false;
    }
예제 #2
0
    static void Maina()
    {
        Instrumentation.RegisterAssembly(typeof(Appo).Assembly);

        BadProp2 inst2 = new BadProp2();

        Instrumentation.Publish(inst2);
        Instrumentation.Publish(inst2);
        Instrumentation.Revoke(inst2);
        Instrumentation.Revoke(inst2);

        BadProp inst = new BadProp();

        Instrumentation.Publish(inst);
        Console.WriteLine(inst.Published);
        Instrumentation.Publish(inst);
        Console.WriteLine(inst.Published);

        Instrumentation.Revoke(inst);
        Console.WriteLine(inst.Published);

        inst.Published = true;
        Console.WriteLine(inst.Published);
    }