Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows サービスをコーディングする必要がありますが、サービスの停止を実装する方法がわかりません。
OnStopのドキュメントでは、ServiceBase インスタンスを一貫した状態にするか、Dispose と同等にするかを指定していません: 再起動時にサービスの新しいインスタンスが初期化されるか (ほとんどの UNIX サービスと同様)、同じインスタンスが使用されますか?