public EntityProxy() { ProxyGeneratorBuilder proxyGeneratorBuilder = new ProxyGeneratorBuilder(); IProxyGenerator proxyGenerator = proxyGeneratorBuilder.Build(); SampleInterface sampleInterface = proxyGenerator.CreateInterfaceProxy <SampleInterface, SampleClass>(); Console.WriteLine(sampleInterface); sampleInterface.Foo(); Console.ReadKey(); System.Data.IDbConnection con = null; //proxyGenerator.CreateClassProxy(); }
public void TestAop() { sampleInterface.Foo(); }