I am trying to access the singleton instance created by my WCF service but .SingletonInstance seems to be null even after .Open is called on the ServiceHost.
Is there any way to force the ServiceHost to create the instance before the first WCF client request comes in (which presumably automatically spawns the singleton instance)?
You could make the service call itself…
The instance is indeed only created when a request comes in, you can’t access what isn’t there yet.
But seriously, try to work around this. What do you need it for that you can’t do in the constructor of the implementing class?