How an Application konw an event is triggered in the DLL
-
Hi guys,
How an Application konw an event is triggered in the DLL?
For example i have a time elapsed event implemented in a dll.
namespace timerEvent { public interface Inmea { void sendData(); } private static Timer aTimer = new Timer(1000); public void sendData() { aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Enabled = true; } private void OnTimedEvent(object source, ElapsedEventArgs e) { return "TimerEvent From DLL"; } }
Then the function sendData() will be called by a C# App, How the application the event is triggered?
Or to say, how can i pass the value "TimerEvent From DLL" back to App, when every time the event is triggered in the dll
Thanks.
bag