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