Relative Content

Tag Archive for event

Access functions from user control without events?

On some generic functions, it seems that accessing a function on mainform directly from the usercontrol is easier than raising an event. For example: A function on main form that displays one desired usercontrol centered and tweaked.

Root cause analysis in event correlation

I’m to write an event correlator module for the device we produce. When a fault occurs the resulting avalanche of logs about derivative conditions from various modules is readable only to a person skilled in the task – a layman will be utterly lost. The event correlator is supposed to solve this problem – find root cause and present a friendly message guiding the user to the origin of the problem.

Event and Objects

I have an array of objects. Instead of me when performing a task asking every object If they have anything to say about that, I would rather like the following:

Event and Objects

I have an array of objects. Instead of me when performing a task asking every object If they have anything to say about that, I would rather like the following:

How to determine if a message should be a command message or event message?

Two enterprise integration patterns are the command message and the event message. I am working on a system in which we use messaging not only for integration with other systems, but for internal communication between services. It’s supposed to be an eventually consistent system, and services are supposed to be ignorant of each other (with exception to a couple special-purpose services). As such, we try to avoid things that feel like remote procedure calls (RPC or RPI). We have a bus and message-oriented middleware system, and all messages are broadcasted.

How to determine if a message should be a command message or event message?

Two enterprise integration patterns are the command message and the event message. I am working on a system in which we use messaging not only for integration with other systems, but for internal communication between services. It’s supposed to be an eventually consistent system, and services are supposed to be ignorant of each other (with exception to a couple special-purpose services). As such, we try to avoid things that feel like remote procedure calls (RPC or RPI). We have a bus and message-oriented middleware system, and all messages are broadcasted.

will having an event with subscribers prevent an object from being GC’ed?

I have an object, which has an event which in turn has subscribers.
I know that the subscribing objects won’t get GC’ed since the delegate they stored for the event is connected to them, thus keeping them connected with the object graph, until one explicitly unsubscribes them. This is only logical since otherwise nothing good will happen when the event is fired.