c# - can't find main static main method in WCF -


i created wcf service , faced problem. need update database periodically, couldn't find static method main, whould without client interaction. can do??? wold suggest in such case?

there no main method (or similar entry point) in wcf. need host wcf service in process (such windows service, or iis or self host) "activate" , make available other processes.

one of concepts in wcf write service code function need without having worry infrastructure , hosting. once have written service logic, can decorate , configure service expose other processes. using approach means can change how service exposed other processes without re-writing actual service logic - change configuration. hence, main entry point specific how choose host , expose wcf service outside world.

just google around "wcf hosting" , find lots of information.

if don't need expose service logic external process (which sounds maybe case question) maybe don't need use wcf , can write plain old windows service.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -