1

I have a C# based service that is dependent on the MSMQ service. In some scenarios the MSMQ service takes a long time to start, apparently resulting in a timeout of the C# service. How can I fix this programatically?

Edit: It appears that the bug report I was working on was incorrect, the service does indeed start eventually. I apologize for the confusion

4

1 に答える 1

3

通常、キューでの待機は別のスレッドで行う必要があります。このスレッドは、サービスのOnStartメソッドで直接開始する必要があります。このようにすると、Startコマンドは成功し、サービスはタイムアウトしません。

于 2009-01-07T09:41:31.700 に答える