using System;
namespace MyDownloader.App.SingleInstancing
{
///
/// Provides methods which a single instance application can use to in order to be respond to any new instance of it.
///
public interface ISingleInstanceEnforcer
{
///
/// Handles messages received from a new instance of the application.
///
/// The EventArgs object holding information about the event.
void OnMessageReceived(MessageEventArgs e);
///
/// Handles a creation of a new instance of the application.
///
/// The EventArgs object holding information about the event.
void OnNewInstanceCreated(EventArgs e);
}
}