I have a WCF application that needs to run application initialization code when the application starts. Currently, the code is in my Application_Start method in the global.asax.cs file:
protected void Application_Start(object sender, EventArgs e) {
However, my WCF application has both http (asp.net) and TCP (netTcpBinding) endpoints, depending on which service is being called. This code will only work for regular http endpoints, not for TCP. I need the application launch code to run regardless of whether the client call was made through tcp or http. What is the best way to do this?
thanks
source share