Accessing running Assembly

G

GizMo

Hi all,

I'm wondering if it is possible in C# ( + Reflection ) to do something
like this :

Assume that a Server.exe ( which is a .Net assembly, let's say
WindowsApplication ) is running on th PC.
From a Client.exe, Load the Server.exe assembly THAT IS RUNNING. I mean
without creating a new instance of Server.exe. And then Search for an
interface of the Server.exe and call of method of it.

In fact something like we're doing in C++ with an RPC server running.

Is it possible to access to a running assembly without creating a new
instance ?

Thanks in advance.
GizMo.
 
G

GhostInAK

Hello Gizmo,

Remoting is the new RPC.

-Boo
Hi all,

I'm wondering if it is possible in C# ( + Reflection ) to do something
like this :

Assume that a Server.exe ( which is a .Net assembly, let's say
WindowsApplication ) is running on th PC.

without creating a new instance of Server.exe. And then Search for an
interface of the Server.exe and call of method of it.

In fact something like we're doing in C++ with an RPC server running.

Is it possible to access to a running assembly without creating a new
instance ?

Thanks in advance.
GizMo
 
G

GizMo

It's what I was thinking about but I wasn't sure that it could not be
performed using the Reflection !

Thanks a lot GhostInAK !


GhostInAK a écrit :
 
G

GhostInAK

Hello gizmo,

Reflection is not capable of acquiring instances. I believe the Activator
class is part of the Reflection namespace.. but it only creates new instances..
doesnt acquire existing ones. Reflection is the majik dist that acquires
existing instances.

Alternatively you could use sockets and design your own "RPC"-like communication
protocol. I think Reflection is a better choice.

-Boo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top