Click here to Skip to main content
15,891,248 members
Home / Discussions / C#
   

C#

 
Questiondirectory watching Pin
stephan_00725-Jul-08 2:22
stephan_00725-Jul-08 2:22 
AnswerRe: directory watching Pin
benjymous25-Jul-08 3:53
benjymous25-Jul-08 3:53 
GeneralRe: directory watching Pin
stephan_00725-Jul-08 4:00
stephan_00725-Jul-08 4:00 
GeneralRe: directory watching Pin
Ashfield25-Jul-08 8:22
Ashfield25-Jul-08 8:22 
Questionbinding combobox to xml file Pin
bfis10813725-Jul-08 1:03
bfis10813725-Jul-08 1:03 
AnswerRe: binding combobox to xml file Pin
Tuwing.Sabado25-Jul-08 4:22
Tuwing.Sabado25-Jul-08 4:22 
GeneralRe: binding combobox to xml file Pin
bfis10813727-Jul-08 11:18
bfis10813727-Jul-08 11:18 
QuestionWindows Service : More than one user Service running within the same process Pin
Krugger40425-Jul-08 0:21
Krugger40425-Jul-08 0:21 
Hi,
I am working on a windows service that monitor a path and does some upload based on the FileWatcher class. As per microsoft, it say that "More than one user Service may run within the same process". Therefore, i created two services (component classes) in my windows service project and added an instance of each to the service to run as shown below:

static void Main()
{
ServiceUtility initUtl = new ServiceUtility(Constants System.ServiceProcess.ServiceBase[] ServicesToRun;
ServicesToRun = new System.ServiceProcess.ServiceBase[] { new exchangeRateFileWatcher(), new KYCFileWatcher() };System.ServiceProcess.ServiceBase.Run(ServicesToRun); }

However, i read that the second service will run only if the first one fails. Can you please tell me whether it is possible (and how) to run the two services within the same process (i.e exe)?

Thank you for your kind help

Carpe diem,
Krg

AnswerRe: Windows Service : More than one user Service running within the same process Pin
PIEBALDconsult25-Jul-08 4:15
mvePIEBALDconsult25-Jul-08 4:15 
AnswerRe: Windows Service : More than one user Service running within the same process Pin
vikas amin25-Jul-08 4:50
vikas amin25-Jul-08 4:50 
GeneralRe: Windows Service : More than one user Service running within the same process Pin
Krugger40425-Jul-08 11:09
Krugger40425-Jul-08 11:09 
Questionsystem should alert the user that the data is not saved Pin
neer125-Jul-08 0:18
neer125-Jul-08 0:18 
AnswerRe: system should alert the user that the data is not saved Pin
selcuks25-Jul-08 0:34
selcuks25-Jul-08 0:34 
Questionaccess database password Pin
lankaudaranga24-Jul-08 23:32
lankaudaranga24-Jul-08 23:32 
GeneralRe: access database password Pin
CPallini24-Jul-08 23:44
mveCPallini24-Jul-08 23:44 
AnswerRe: access database password Pin
Paul Conrad27-Jul-08 19:08
professionalPaul Conrad27-Jul-08 19:08 
Questionfilesystemwatcher Pin
arkiboys24-Jul-08 22:42
arkiboys24-Jul-08 22:42 
AnswerRe: filesystemwatcher Pin
#realJSOP25-Jul-08 4:36
mve#realJSOP25-Jul-08 4:36 
GeneralRe: filesystemwatcher Pin
led mike25-Jul-08 5:42
led mike25-Jul-08 5:42 
GeneralRe: filesystemwatcher Pin
arkiboys25-Jul-08 6:02
arkiboys25-Jul-08 6:02 
AnswerRe: filesystemwatcher Pin
Ashfield25-Jul-08 8:52
Ashfield25-Jul-08 8:52 
GeneralRe: filesystemwatcher Pin
arkiboys25-Jul-08 9:20
arkiboys25-Jul-08 9:20 
GeneralRe: filesystemwatcher Pin
Ashfield25-Jul-08 9:33
Ashfield25-Jul-08 9:33 
GeneralRe: filesystemwatcher Pin
arkiboys25-Jul-08 9:34
arkiboys25-Jul-08 9:34 
QuestionParsing a html content or content in a web page Pin
Sandep H S24-Jul-08 22:32
Sandep H S24-Jul-08 22:32 

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.