S
SharpCoderMP
hi,
as in subject - how can i do that?
when my service starts up it performs some tests within OnStart method.
i would like it to refuse to start if some of these tests fail. there is
simply no point in running my service if certain criteria is not met. in
that case i would like to log test results and just stop. calling
this.Stop() inside OnStart method does not sound like a good idea :/
as in subject - how can i do that?
when my service starts up it performs some tests within OnStart method.
i would like it to refuse to start if some of these tests fail. there is
simply no point in running my service if certain criteria is not met. in
that case i would like to log test results and just stop. calling
this.Stop() inside OnStart method does not sound like a good idea :/