Gui*_*ans 2 .net c# lifecycle named-pipes global-asax
我有一个在命名管道上运行的服务.该服务应该在启动时做一些事情,所以我在Global.asax中定义了这个.现在我遇到的情况是,当服务收到第一次呼叫时,这不是.以这种方式使用命名管道不同?
protected void Application_Start(object sender, EventArgs e)
{
Log.Information("Application_Start().");
DoSomeStuff();
}
Run Code Online (Sandbox Code Playgroud)