Architect Issue.

G

Guest

I have an Exe and on My Pc I am allowing my exe to execute from desktop as
well as calling from web application.

This exe is a dotnet application and hosts a DLL. again this DLL is a dotnet
application. Till now every thing is system works fine.

I can see multiple instances are opening and work is getting completed as
per my expections.


Problem is that In my DLL I have one Static class; class has property which
hold complex cached data. since all the application has app domain different
how do I preserve to have only one instance across all the application.
(Memory saving)

Regards,
Kishor
 
C

Cowboy \(Gregory A. Beamer\)

Create it as a service. You have a choice here.

1. Web service - easiest to implement, decent performance (under 2.0) -
Note: I stick Remoting under this realm, even though it is a different beast
to code.
2. Windows service - better performance, harder to implement

I would opt for the web service first, even if you choose a Remoting
transport, and see if it fulfills your needs.

Another option is the GAC, which puts the code in one place, but I still
think this will load independently for each app domain, which will make it
an identical situation.
 
G

Guest

Hi,
Thanxs for your reply,
Webservice can be a solution.
But will be slower. There must be some other way to achieve this.


Regards,
Kishor
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top