I suppose a little background information is needed to describe my
situation. We have a windows service that constantly maintains a bunch of
objects in the background. We would like to expose these objects through a
web service. We're able to use COM to get access to the objects in the
windows service, but when we introduce the web service it means that we'll
be taking a performance hit when crossing process boundaries. I was hoping
that a solution similar to that provided by Cassini would eliminate the
costs of going cross process because the web service and windows service
would be under the same process, but I don't think it will (based on my
initial tests). We have a singleton object in the windows service that is
the main entry point to all the other objects and is created when the
windows service starts. When the web service (implemented inside the
windows service) attempts to access the singleton all the initialization
code gets executed again (as if the singleton was not created yet).
Does anyone have any other suggestions before I give up on this
Thanks!