新的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)
{