新的Visual Studio和新的C#。在Visual Studio 2017中構建一個名爲Transactional Messaging的C#windows服務,該服務依賴於名爲Outbound Messaging的項目。當我開始調試,並嘗試在出站信息文件添加斷點,我得到 "The breakpoint will not currently be hit. No Symbols have be
如何知道服務因某種異常而停止或在以下事件中手動停止? protected override void OnStop()
{
if (Service is stopped manually)
{
//Log Something
}
else if (Service is stopped due to some exception)
{