How to make a method in a windows service.

I made one windows service and i can control the OnStart, OnStop.

example

protected overwrite void OnStop()

{

//DO something

}

my real question is, how to make an own method in windows service and how do i send a string to it.. i would like it like this

public string getPass(string tempUser)

{

string tempPass = "";

//do something do something,

return tempPass;

}

anyone who knows where i can read about this stuff please contact me..



Answer this question

How to make a method in a windows service.