Questions tagged [realproxy]

21 questions
1
vote
0 answers

real proxy implementation issue when trying to break the pipeline in c#

AuthenticationProxy.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.Remoting.Proxies; using System.Runtime.Remoting.Messaging; using System.Reflection; using…
1
vote
0 answers

Hooking events by RealProxy

I'm trying to hook the event (Action in that case) but cant return from proxy without exception. Here's the idea: I have the interface of events, they not subscribed on client side. So when I try raise event on client side, I catch this event in…
Miles
  • 488
  • 5
  • 19
0
votes
1 answer

C# RealProxy: for chained methods not working logging (Fluent interface pattern)

Why not working logging for chained methods, but if the same methods call via the saved instance, logging for ones work fine Gist snippet
0
votes
1 answer

Calling GetType on service interface causes invoke?

I have a very basic interface for several services. Doing something like: private static void Test(IService svc) { var test = svc.GetType(); } while passing in an instance of a remote service that inherits from IService causes the RealProxy…
Shawn
  • 2,356
  • 6
  • 48
  • 82
0
votes
1 answer

How do you return an object as the return value through a RealProxy transparent proxy?

I'm working up a system where I plan on using RealProxy objects to enable intercepting method calls against a set of objects, handling the call, and then returning appropriate results. This works just find for simple return types like strings or…
DarinH
  • 4,868
  • 2
  • 22
  • 32
-1
votes
1 answer

Casting and As operator resulting in the casted object and a null reference respectively

This question is almost purely for learning purposes. Environment used is the Unity 3D engine. I've been using the RealProxy and MarhalByRefObject classes in C# to decorate one of my classes. Specifically, I created a generic proxy class using the…
G.Pap
  • 7
  • 4
1
2