예제 #1
0
파일: Form1.cs 프로젝트: onuar/HRC
        private void button1_Click(object sender, EventArgs e)
        {
            this.Text = "processing";
            var il = new Il { Ad = "proxy tester", Aktif = true };

            //classic
            //IIlBusiness ilb = HRC.Library.ContextFoundation.ProxyGenerator<IlBusiness, IIlBusiness>.GetProxy();
            //cache
            IIlBusiness ilb = ProxyHelper<IIlBusiness, IlBusiness>.Instance.AddOrGet();
            ilb.DoSomething(il);

            this.Text = "process completed";

            updateCounter++;
            label1.Text = updateCounter.ToString();
        }
예제 #2
0
파일: Form1.cs 프로젝트: Cronom/HRC
 private void button2_Click(object sender, EventArgs e)
 {
     var il = new Il { Ad = "hede" };
     var schema = SchemaCollection.Instance.GetSchema(il);
 }