public PropertyInterceptorFactory(IProxyContext context) : base(context)
 {
     RESOLVE_PROPERTY = Context.InterceptorType.Methods.Single
                        (
         met => met.SignatureEquals
         (
             MetadataMethodInfo.CreateFrom
             (
                 (MethodInfo)MemberInfoExtensions.ExtractFrom(() => InterfaceInterceptor <object> .ResolveProperty(default !))
            public ConstructorFactory(IProxyContext context) : base(context.InterceptorType)
            {
                Context = context;

                Proxy = Context.InterceptorType.Properties.Single
                        (
                    prop => prop.Name == nameof(InterfaceInterceptor <object> .Proxy)
                        );
            }
Ejemplo n.º 3
0
            public ProxyMemberSyntaxFactory(IProxyContext context) : base(context.InterfaceType)
            {
                Context = context;

                TARGET = Context.InterceptorType.Properties.Single
                         (
                    prop => prop.Name == nameof(InterfaceInterceptor <object> .Target)
                         );

                INVOKE_TARGET = Context.InterceptorType.Properties.Single
                                (
                    prop => prop.Name == nameof(InterfaceInterceptor <object> .InvokeTarget)
                                );

                INVOKE = Context.InterceptorType.Methods.Single
                         (
                    met => met.SignatureEquals
                    (
                        MetadataMethodInfo.CreateFrom
                        (
                            (MethodInfo)MemberInfoExtensions.ExtractFrom <InterfaceInterceptor <object> >(ic => ic.Invoke(default !, default !, default !))
Ejemplo n.º 4
0
 public NonAbstractProxyMemberSyntaxFactory(IProxyContext context) : base(context)
 {
 }
 public InvokeFactory(IProxyContext context) : base(context)
 {
 }