示例#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);
 }