473,395 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 "Transactions
statistics" node

Thanks.


Nov 16 '05 #1
1 1440
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 MarshalByRefObject). 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.com

"Julia" <co********@012.net.il> wrote in message
news:uo**************@TK2MSFTNGP11.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 "Transactions
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
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...
1
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...
7
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...
0
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...
1
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...
4
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...
0
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...
5
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. ...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.