473,657 Members | 2,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Events between MMC snapin and Window service

My service send email messages and log all information to a log file

I wonder if it's common to raise events from the service(the remote object
which hosted inside the service)
to my MMC snapin, so user will be able to see (roughly) what the service is
doing

I am thinking about something similar to COM+ snap in "Transactio ns
statistics" node

Thanks.


Nov 16 '05 #1
1 1449
Julia,

Basically, you will have to set it up so that you can remote events from
your service to whomever has an instance of a class that your service is
hosting. For the sake of simplicity, define an interface that has the event
information that you want to convey, and have the client pass the interface
implementation to the server (the client or object implementing the
interface has to derive from MarshalByRefObj ect). That way, when the server
wants to fire an event, it just calls the method on the registered
interfaces.

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

"Julia" <co********@012 .net.il> wrote in message
news:uo******** ******@TK2MSFTN GP11.phx.gbl...
My service send email messages and log all information to a log file

I wonder if it's common to raise events from the service(the remote object
which hosted inside the service)
to my MMC snapin, so user will be able to see (roughly) what the service
is
doing

I am thinking about something similar to COM+ snap in "Transactio ns
statistics" node

Thanks.


Nov 16 '05 #2

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

Similar topics

6
2489
by: Usman | last post by:
Hi I have a window service written in C#. I have another application that requires a lengthy process to be performed like taking backup. How can I make this lengthy process be performed by window service in such a manner that my application may invoke the process. Is there any way that I can call some method written in window service apart from Start, Stop, Pause etc from my application or firing some custom event to the window service...
1
1201
by: Niklas | last post by:
Hi I have a remoting client/server application. The clients subscribes to a server event. All works fine if client is used as a window application, but when the client is used with No-Touch deployment over Internet Explorer the clients do not get the server events any more and no exceptions are thrown. The clients have FullTrust permission. Are callbacks/events supported by No-Touch deployment? Regards /Niklas
7
2438
by: cider123 | last post by:
I'm coding a project using the following article as reference: http://www.codeproject.com/csharp/DynamicPluginManager.asp In this type of project, plugins are loaded dynamically into a Plugin Manager. Your main application then hooks into the Plugin Manager. What I'm trying to figure out is how to impliment some form of raising
0
254
by: jeffrey_murdock | last post by:
hello mr./ms. C# guru, does somebody know how ho to catch "GUI events" from "other processes"? I'm only interessted in events which are related to the GUI. -GUI events like these 4 for example DoubleClick
1
1109
by: John | last post by:
Hi all, Ive created a new ASP.NET web app and am trying to learn C#/VS 2005. My first hurdle is that I can't find anywhere in the IDE where I can associate a control with it's events. I need to cater for certain events of ceratin controls but can't find where I'm supposed to do this like in VB.NET. Any ideas? Regards
4
1267
by: GTi | last post by:
I have this solution: -> -> A knows about B but not C C knows about B but not A Type A can be a EXE file or NT Service There can be many of type A loaded but not necessarily the same file.
0
1052
by: patrick_boyd | last post by:
Hi I'm trying to write an MMC SnapIn for a 64-bit system. I'm using MMC 3.0 and the managed framework for the SnapIns with C#. I get an error saying Unable to cast object of type 'TestSnapIn' to type 'Microsoft.ManagementConsole.SnapInBase'. Here is my code: public class TestSnapIn : SnapIn {
5
4160
by: Les Caudle | last post by:
On a new win2003 Standard install, I installed IIS and ASP.NET. I then installed .NET Framework 2.0 from MS Updates. In the management console, I've added in a .NET Configuration 1.1 snapin. But, I don't see the .NET 2.0 Framework Configuration snapin (in the list of available snapins). How can I resolve this?
2
6346
by: yevron2 | last post by:
Hello, I am trying to get clipboard events using SetClipboardViewer api. It works in a windows form when i override the function: protected override void WndProc(ref System.Windows.Forms.Message m) that belongs to the base class System.Windows.Forms. The problem is that i want to do it in a windows service...
0
8421
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8325
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
8742
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
8518
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
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
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...
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1734
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.