예제 #1
0
 public ComplexTypeWithTransparentProxy GetComplexTypeWithTransparentProxy()
 {
     return(new ComplexTypeWithTransparentProxy
     {
         ProxyName = "MyProxy",
         Proxy = ProxyHost.CreateProxy(new Value(23)).Cast <IValue>().AsTransparentProxy()
     });
 }
예제 #2
0
 public ComplexTypeStubBackReference GetComplexObjectWithBackReference()
 {
     return(new ComplexTypeStubBackReference
     {
         ABC = "DEF",
         Proxy = ProxyHost.CreateProxy(this)
     });
 }
예제 #3
0
 public ComplexTypeWithProxy GetComplexTypeWithProxy()
 {
     return(new ComplexTypeWithProxy
     {
         ProxyName = "MyProxy",
         Proxy = ProxyHost.CreateProxy(new Value(23))
     });
 }
예제 #4
0
 public IFoo GetFooTransparent()
 {
     return(ProxyHost.CreateProxy(new Foo(), ownsInstance: true).Cast <IFoo>().AsTransparentProxy());
 }
예제 #5
0
 public IProxy <Foo> GetFoo()
 {
     return(ProxyHost.CreateProxy(new Foo(), ownsInstance: true));
 }