Click here to Skip to main content
15,881,600 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to make a list that contain lists which contain lists Pin
BillWoodruff4-Dec-15 4:04
professionalBillWoodruff4-Dec-15 4:04 
QuestionProblem with Event Pin
Member 121764283-Dec-15 10:19
Member 121764283-Dec-15 10:19 
AnswerRe: Problem with Event Pin
Matt T Heffron3-Dec-15 11:09
professionalMatt T Heffron3-Dec-15 11:09 
AnswerRe: Problem with Event Pin
Mycroft Holmes3-Dec-15 12:07
professionalMycroft Holmes3-Dec-15 12:07 
Questionwcf with net msmq binding Pin
Member 106619973-Dec-15 2:21
Member 106619973-Dec-15 2:21 
SuggestionRe: wcf with net msmq binding Pin
Richard MacCutchan3-Dec-15 3:51
mveRichard MacCutchan3-Dec-15 3:51 
QuestionWindows Service with multitple jobs in c# Pin
Member 109327092-Dec-15 12:02
Member 109327092-Dec-15 12:02 
AnswerRe: Windows Service with multitple jobs in c# Pin
Dave Kreskowiak2-Dec-15 12:33
mveDave Kreskowiak2-Dec-15 12:33 
You said it yourself. The service starts and launches a PROCESS. A thread is not a process. It's a thread of execution doing some work.

Your service would be launching processes, separate .EXE's, that stand on their own and do work on their own.

In your current implementation, you're not supposed to be launching threads to do work from inside the code that starts the service. Also, it seems as though each worker is dependent on the same database objects (connection at least), meaning if one fails, they all fail. WRONG! Your design is flawed. Each worker should have it's own SQL support right down to its own SQL connection objects and possibly even connection string. That way they are completely independent of each other.

I've done something similar, but I went with a plug-in system where each plug-in (.dll) is loadable by the service when needed and is unloaded when not. This allows me to have each plug-in talk to the service for logging and exception handling purposes and also allows me to swap out .dll's without shutting down the entire service.

No, I'm not sharing the code with anyone. I put way too much work into it to give it away for free.

Hints: I used Log4Net, a custom log forwarder to cross AppDomain boundries, TopShelf, a heavily modified version of the Simple Plugins Framework from a SourceForge project, a custom scheduling engine and a new configuration module.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

QuestionHandle transaction without deadlock Pin
Member 106619971-Dec-15 4:25
Member 106619971-Dec-15 4:25 
AnswerRe: Handle transaction without deadlock Pin
Eddy Vluggen1-Dec-15 4:55
professionalEddy Vluggen1-Dec-15 4:55 
QuestionTimelineTool WPF C# Help Pin
Member 121189591-Dec-15 3:47
Member 121189591-Dec-15 3:47 
AnswerRe: TimelineTool WPF C# Help Pin
Pete O'Hanlon1-Dec-15 4:01
mvePete O'Hanlon1-Dec-15 4:01 
SuggestionRe: TimelineTool WPF C# Help Pin
Matt T Heffron1-Dec-15 8:06
professionalMatt T Heffron1-Dec-15 8:06 
QuestionJamaa SMPP: A connection attempt failed because the connected party did not properly respond Pin
Jassim Rahma1-Dec-15 0:38
Jassim Rahma1-Dec-15 0:38 
AnswerRe: Jamaa SMPP: A connection attempt failed because the connected party did not properly respond Pin
Richard Deeming1-Dec-15 0:44
mveRichard Deeming1-Dec-15 0:44 
QuestionNeed help with regards to datagridview Pin
Tbweri30-Nov-15 15:31
Tbweri30-Nov-15 15:31 
AnswerRe: Need help with regards to datagridview Pin
OriginalGriff30-Nov-15 21:38
mveOriginalGriff30-Nov-15 21:38 
GeneralRe: Need help with regards to datagridview Pin
Mycroft Holmes30-Nov-15 22:20
professionalMycroft Holmes30-Nov-15 22:20 
GeneralRe: Need help with regards to datagridview Pin
OriginalGriff1-Dec-15 0:05
mveOriginalGriff1-Dec-15 0:05 
GeneralRe: Need help with regards to datagridview Pin
Tbweri1-Dec-15 9:42
Tbweri1-Dec-15 9:42 
AnswerRe: Need help with regards to datagridview Pin
Simon_Whale1-Dec-15 1:17
Simon_Whale1-Dec-15 1:17 
GeneralRe: Need help with regards to datagridview Pin
Eddy Vluggen1-Dec-15 1:19
professionalEddy Vluggen1-Dec-15 1:19 
GeneralRe: Need help with regards to datagridview Pin
Tbweri1-Dec-15 9:54
Tbweri1-Dec-15 9:54 
Questionhow to use thread to control chart? Pin
smallkubi30-Nov-15 15:04
smallkubi30-Nov-15 15:04 
AnswerRe: how to use thread to control chart? Pin
Dave Kreskowiak30-Nov-15 16:05
mveDave Kreskowiak30-Nov-15 16:05 

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.