Cannot find the main static main method in WCF

I created a WCF service and ran into a problem. I need to update the database periodically, but I could not find a static method, such as Main, that would do this without interacting with the client. What can I do??? What do you suggest in this case?

+5
source share
2 answers

There is no main method (or a similar entry point) in WCF. You need to host your WCF service in another process (for example, a Windows or IIS service or your own host) in order to “activate” it and make it available to other processes.

WCF , , . , , , . , , , - . , , WCF .

Google " WCF", .

(, , ), , WCF, Windows.

+2

wcf , .

IIS, application_start, . WCF

+3

All Articles