Service and class pass data?
Posted on 2006-07-03
I have a nicely running service.
Now I need to include a restriction for licensing sake.
The service must 'call' a method in a seperate class to continune running.
The problem is that the service keeps running regardless.
So, it appears the class data is not successfully passed to the service.
Here's the code:
protected override void OnStart(string args)
Class1 class1 = new Class1();
bool ok = class1.Check();
run = true;
run = false;
public bool Check()
if (info1 != info2)
result = false;
result = true;