473,708 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mimic Service Control Manager Functionality

Hello,
I would like to have a main C# EXE that controls many other C# EXE
applications. These C# EXE applications would need to implement a Base class
that provides a bunch of plumbing that is tied to the main executable. I
would like any thoughts on how this can be done?
Thanks,
Ken
Feb 7 '06 #1
4 1620
Ken,

I would have the base class expose a remoting endpoint. This way, you
can control the applications, or at least, have them all implement a similar
interface which you can connect to and use to control them.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Kenneth H. Brannigan" <Ke************ ***@discussions .microsoft.com> wrote
in message news:E0******** *************** ***********@mic rosoft.com...
Hello,
I would like to have a main C# EXE that controls many other C# EXE
applications. These C# EXE applications would need to implement a Base
class
that provides a bunch of plumbing that is tied to the main executable. I
would like any thoughts on how this can be done?
Thanks,
Ken

Feb 7 '06 #2
Would threads not work for you instead of seperate processes? If you really
need seperate processes, maybe a Remoting IPC channel .

--
William Stacey [MVP]

"Kenneth H. Brannigan" <Ke************ ***@discussions .microsoft.com> wrote
in message news:E0******** *************** ***********@mic rosoft.com...
| Hello,
| I would like to have a main C# EXE that controls many other C# EXE
| applications. These C# EXE applications would need to implement a Base
class
| that provides a bunch of plumbing that is tied to the main executable. I
| would like any thoughts on how this can be done?
| Thanks,
| Ken
Feb 7 '06 #3
Thanks for the information.

"William Stacey [MVP]" wrote:
Would threads not work for you instead of seperate processes? If you really
need seperate processes, maybe a Remoting IPC channel .

--
William Stacey [MVP]

"Kenneth H. Brannigan" <Ke************ ***@discussions .microsoft.com> wrote
in message news:E0******** *************** ***********@mic rosoft.com...
| Hello,
| I would like to have a main C# EXE that controls many other C# EXE
| applications. These C# EXE applications would need to implement a Base
class
| that provides a bunch of plumbing that is tied to the main executable. I
| would like any thoughts on how this can be done?
| Thanks,
| Ken

Feb 8 '06 #4
Nicholas,
Thanks for the information. I think this will work for my particular
situation. I am going to look into more.
Thanks,
Ken

"Nicholas Paldino [.NET/C# MVP]" wrote:
Ken,

I would have the base class expose a remoting endpoint. This way, you
can control the applications, or at least, have them all implement a similar
interface which you can connect to and use to control them.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Kenneth H. Brannigan" <Ke************ ***@discussions .microsoft.com> wrote
in message news:E0******** *************** ***********@mic rosoft.com...
Hello,
I would like to have a main C# EXE that controls many other C# EXE
applications. These C# EXE applications would need to implement a Base
class
that provides a bunch of plumbing that is tied to the main executable. I
would like any thoughts on how this can be done?
Thanks,
Ken


Feb 8 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2767
by: Russ McDaniel | last post by:
Originally posted to microsoft.public.dotnet.distributed_apps with no response. Reposted here with additional thoughts. --- Hello, I'm writing a Windows service which performs some potentially long-running, uninterruptable processes. When the service starts, I create a separate worker thread to perform the work so as to not block the service control manager upon startup. The design quandry I'm running into though is how best
7
3859
by: Steve Long | last post by:
In writing a Windows service with .NET, I'm noticing that the process for some services can not be killed with specifically stopping the service. If you try to kill the process with, say task manager, you get an access denied message. I just wrote a test service and I can kill the process for this service without actually stopping the service. Can someone tell me how to keep the process for my service from being killed without actually...
3
56997
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I want to test this service on a Windows Server 2003 box that doesn't have the Visual Studio Command prompt. How do I go about installing the service on the Windows Server 2003 box? Thanks!
4
2385
by: Mrinal Kamboj | last post by:
Hi , Doubt may be bit trivial , but i wanted to know , what are the exact benefits derived while we run a background process as an NT service in windows , we can as well achieve the functionality using standalone exe , which will keep on running in a loop and do the job till been messaged to stop . Essentially , i want the key advantages of implementing process daemons as an NT Service in windows .
1
1122
by: Sunil | last post by:
Hi, Is it possible to redirect a web service on some other URL using IIS Manager. Actually i have a web service whose source code is not available. I want to add some functionality to that web service. I mean i want to use my added functionality as well as original functionality. My Client will call directly Original Service . I don't have control on
2
4677
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property of the service is not set (this can be checked by right-clicking on the service in the Services window (Admin tools>Services), choosing Properties, LogOn tab). In order to enable my service to launch a GUI at startup, I added the following lines...
4
2904
by: Jianwei Sun | last post by:
Hi, all, I have a question, and I hope to get some hints here.. I created a really simple service just to check why the service manager doesn't start my service the second time if the first time failed.. I created an atl service through the wizard, and the only thing I do is override the PreMessageLoop()...
6
6475
by: uuyytt | last post by:
I have a Windows service from which I want to start Internet Explorer with a particular URL as an argument. I don't know why my code (shown below) doesn't work. I know that IExplore.exe starts as I can see it in my task manager, but it is not visible. Can anyone explain what is happening? My code: Process p = Process.Start("IExplore.exe", m_strURL);
13
6648
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net Framework Service Pack 1 in order to use ASP.net 1.1 and the net Framework 1.1 ------------------------------------------------------------------------------------------------ I found the following file, "svcpack.log" at C:\WINNT. It contains many...
0
8697
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9158
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9060
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5939
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4712
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3151
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2508
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2096
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.