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)?