How to use ObjRef.GetRealObject() function
.NET (Core and Framework)
1
Posts
1
Posters
0
Views
1
Watching
-
Hello to everybody, I was wondering how to use this function to have the Real Object instead of the trasparent proxy one. I'm asking this since I wish to use .NET remoting to remotize a SQLDataReader. Last Time I tried I have a really bad performance, since each single sdr.Read() returns to the remote object and then to the calling client, with a really high time overhead. I've seen that ObjRef has got this method :
GetRealObject(StreamingContext context)
, it's possible to use it in the code or it's used just when overriding it? if yes, where I get this StreamingContext? Thanks Paolo