Hi all,
I am writing an application that uses WCF to enable secure calls from one computer to another.. However, I need to pass a reference from the "server" class to the WCF class so that the calling "client" can utilize and access properites from the "server".
I can't seem to do this.
On the server, when creating the WCF listener, I create the reference as a property in my WCF class. However, when my client connects, it creates a "new" instance of the WCF and my reference is now NULL.
Any help or work arounds?
I was thinking maybe creating a some sort of global class which doesn't need to be instanciated (no constructor) and have my IClass access references from that. Not sure though the exact way to go about this.
Cheers,
G.
Oxigen - Next generation business solutions
-----------------------------
Components/Tools/Forums/Software/Web Services
I am writing an application that uses WCF to enable secure calls from one computer to another.. However, I need to pass a reference from the "server" class to the WCF class so that the calling "client" can utilize and access properites from the "server".
I can't seem to do this.
On the server, when creating the WCF listener, I create the reference as a property in my WCF class. However, when my client connects, it creates a "new" instance of the WCF and my reference is now NULL.
Any help or work arounds?
I was thinking maybe creating a some sort of global class which doesn't need to be instanciated (no constructor) and have my IClass access references from that. Not sure though the exact way to go about this.
Cheers,
G.
Oxigen - Next generation business solutions
-----------------------------
Components/Tools/Forums/Software/Web Services