how i initialize use vigilant self-hosting wcf
i am hosting use within windows service.
the following dash instantiates servicehost object:
host = new servicehost(typeof(services.documentinfoservice));
the documentinfoservice category implements agreement interface methods plead business objects requiring initialization (actually tie string). ideally, i'd hosting slight tie twine config record pass constructor use object, documentinfoservice, reason onto it pass business objects needed.
however, servicehost constructor takes system.type vigilant -- instances documentinfoservice combined around default constructor. i note there another constructor slight servicehost takes an vigilant instance -- nonetheless docs infer singletons.
is there proceed me vigilant after assembled i pass initialization data?
Comments
Post a Comment