コード例 #1
0
        public void TestCase()
        {
            generator.ProxyBuilder.CreateInterfaceProxyTypeWithTarget(
                typeof(IPresentationHost), Type.EmptyTypes, typeof(PresentationHost), ProxyGenerationOptions.Default);

            IServiceAgent agent =
                (IServiceAgent)
                generator.CreateInterfaceProxyWithTarget <IServiceAgent>(new ServiceAgent(), new StandardInterceptor());

            agent.GetProxy <string>();
        }