|
using Interfaces;
using System.Threading;
namespace CommonUtilities
{
public class ThreadsCreateData : IThreadsCreateData
{
/// <summary>
/// Initializes a new instance of the <see cref="ThreadsCreateData"/> class.
/// </summary>
public ThreadsCreateData()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ThreadsCreateData"/> class.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="startMessage">The start message.</param>
/// <param name="stoppedMessage">The stopped message.</param>
/// <param name="updateMessage">The update message.</param>
/// <param name="threadEvent">The thread event.</param>
/// <param name="cycle">The cycle.</param>
/// <param name="data">The data.</param>
public ThreadsCreateData(string name, string startMessage, string stoppedMessage, string updateMessage, EventWaitHandle threadEvent, int cycle, object data)
{
_cycle = cycle;
_name = name;
_data = data;
_threadStartMessage = startMessage;
_threadStoppedMessage = stoppedMessage;
_threadUpdateMessage = updateMessage;
_threadEvent = threadEvent;
}
#region IThreadsCreateData Members
private int _cycle;
private string _name;
private object _data;
private string _threadStartMessage;
private string _threadStoppedMessage;
private string _threadUpdateMessage;
private EventWaitHandle _threadEvent;
/// <summary>
/// Gets or sets the cycle.
/// </summary>
/// <value>
/// The cycle.
/// </value>
public int Cycle
{
get
{
return _cycle;
}
set
{
_cycle = value;
}
}
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>
/// The name.
/// </value>
public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}
/// <summary>
/// Gets or sets the data.
/// </summary>
/// <value>
/// The data.
/// </value>
public object Data
{
get
{
return _data;
}
set
{
_data = value;
}
}
/// <summary>
/// Gets or sets the thread start message.
/// </summary>
/// <value>
/// The thread start message.
/// </value>
public string ThreadStartMessage
{
get
{
return _threadStartMessage;
}
set
{
_threadStartMessage = value;
}
}
/// <summary>
/// Gets or sets the thread stopped message.
/// </summary>
/// <value>
/// The thread stopped message.
/// </value>
public string ThreadStoppedMessage
{
get
{
return _threadStoppedMessage;
}
set
{
_threadStoppedMessage = value;
}
}
/// <summary>
/// Gets or sets the thread update message.
/// </summary>
/// <value>
/// The thread update message.
/// </value>
public string ThreadUpdateMessage
{
get
{
return _threadUpdateMessage;
}
set
{
_threadUpdateMessage = value;
}
}
/// <summary>
/// Gets or sets the thread event.
/// </summary>
/// <value>
/// The thread event.
/// </value>
public EventWaitHandle ThreadEvent
{
get
{
return _threadEvent;
}
set
{
_threadEvent = value;
}
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Project Manager and Application Developer, in a wide variety of business applications. Particularly interested in client/server and Graphical User Interface design using Visual C#.
Specialties: 13 Y'rs in C#, 10 Y'rs experience in C++ Highly experienced in wide technologies, IT projects, military projects etc'.