using System;
namespace MyDownloader.App.SingleInstancing
{
///
/// Provides data for the SingleInstancing.ISingleInstanceEnforcer.OnMessageReceived method.
///
[Serializable()]
public class MessageEventArgs : EventArgs
{
#region Member Variables
private object message;
#endregion
#region Construction / Destruction
///
/// Instantiates a new MessageEventArgs object.
///
/// The message to pass to the first running instance of the application.
/// message is null.
public MessageEventArgs(object message)
{
if (message == null)
throw new ArgumentNullException("message", "message cannot be null.");
this.message = message;
}
#endregion
#region Properties
///
/// Gets the message sent to the first instance of the application.
///
public object Message
{
get
{
return message;
}
}
#endregion
}
}