I need to share my application statistics via a wcf service. I'm able to self-host my wcf service but ServiceHost object constructor is default leaving me to unable to initialize other member variables of my service.
Sample:
public interface IService
{
//some operations here
}
public class Service : IService
{
object myObject;
//implementation of IService
}
myObject is my console application object ( List ) and I wanted to make my service to be able to look into it. Is there any way I can reference it on my WCF Service?