Click here to Skip to main content
15,886,919 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionWindows Service, Little help getting started Pin
jkirkerx2-Oct-14 11:35
professionaljkirkerx2-Oct-14 11:35 
AnswerRe: Windows Service, Little help getting started [solved] Pin
jkirkerx2-Oct-14 12:35
professionaljkirkerx2-Oct-14 12:35 
AnswerRe: Windows Service, Little help getting started Pin
Kornfeld Eliyahu Peter6-Oct-14 1:01
professionalKornfeld Eliyahu Peter6-Oct-14 1:01 
QuestionWindows Service that sends emails Pin
jkirkerx1-Oct-14 10:23
professionaljkirkerx1-Oct-14 10:23 
AnswerRe: Windows Service that sends emails Pin
Garth J Lancaster1-Oct-14 10:55
professionalGarth J Lancaster1-Oct-14 10:55 
GeneralRe: Windows Service that sends emails Pin
jkirkerx1-Oct-14 11:04
professionaljkirkerx1-Oct-14 11:04 
GeneralRe: Windows Service that sends emails Pin
Garth J Lancaster1-Oct-14 13:46
professionalGarth J Lancaster1-Oct-14 13:46 
GeneralRe: Windows Service that sends emails Pin
PIEBALDconsult1-Oct-14 11:32
mvePIEBALDconsult1-Oct-14 11:32 
Avoid the registry; use a config file (of your own design if you like).

If the Service(s) store status in the database, then any number of clients (Console, WinForms, Tray) can report status and allow control.

A while back I wrote a system of Windows Services that involved a main process that read its instructions from the database and ran each individual Service as instructed.

I suspect that few newbies are aware that a "service process" can run multiple "service threads" at once -- it's not a 1:1 relationship.

C#
public static void Run(
	ServiceBase[] services
)

http://msdn.microsoft.com/en-us/library/6esb073b(v=vs.110).aspx[^]

In this way, I could have the process on server "CAT" run Services "Scratch" and "Purr", while the process on server "DOG" could run Services "Wag" and "Bark" and moving Services from one server to another was simple. All servers had exactly the same code deployed.
GeneralRe: Windows Service that sends emails Pin
jkirkerx1-Oct-14 11:38
professionaljkirkerx1-Oct-14 11:38 
GeneralRe: Windows Service that sends emails Pin
PIEBALDconsult1-Oct-14 11:44
mvePIEBALDconsult1-Oct-14 11:44 
GeneralRe: Windows Service that sends emails Pin
jkirkerx1-Oct-14 11:45
professionaljkirkerx1-Oct-14 11:45 
AnswerRe: Windows Service that sends emails Pin
jschell3-Oct-14 9:11
jschell3-Oct-14 9:11 
GeneralRe: Windows Service that sends emails [Update on my progress] Pin
jkirkerx3-Oct-14 11:05
professionaljkirkerx3-Oct-14 11:05 
Questionasp:Menu select based on URL Pin
byka1-Oct-14 3:15
byka1-Oct-14 3:15 
AnswerRe: asp:Menu select based on URL Pin
Eddy Vluggen1-Oct-14 3:25
professionalEddy Vluggen1-Oct-14 3:25 
GeneralRe: asp:Menu select based on URL Pin
byka1-Oct-14 3:41
byka1-Oct-14 3:41 
QuestionRe: asp:Menu select based on URL Pin
ZurdoDev1-Oct-14 3:42
professionalZurdoDev1-Oct-14 3:42 
AnswerRe: asp:Menu select based on URL Pin
byka1-Oct-14 4:03
byka1-Oct-14 4:03 
QuestionRe: asp:Menu select based on URL Pin
ZurdoDev1-Oct-14 4:13
professionalZurdoDev1-Oct-14 4:13 
AnswerRe: asp:Menu select based on URL Pin
byka1-Oct-14 4:59
byka1-Oct-14 4:59 
GeneralRe: asp:Menu select based on URL Pin
Eddy Vluggen1-Oct-14 5:07
professionalEddy Vluggen1-Oct-14 5:07 
GeneralRe: asp:Menu select based on URL Pin
Pete O'Hanlon1-Oct-14 5:48
mvePete O'Hanlon1-Oct-14 5:48 
AnswerRe: asp:Menu select based on URL Pin
Member 977403922-Oct-14 3:49
Member 977403922-Oct-14 3:49 
QuestionString to XML convert Pin
byka24-Sep-14 7:40
byka24-Sep-14 7:40 
AnswerRe: String to XML convert Pin
Richard MacCutchan24-Sep-14 21:49
mveRichard MacCutchan24-Sep-14 21:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.