moel@345: using System;
moel@345: using System.Collections.Generic;
moel@345: using System.Text;
moel@345: using System.Threading;
moel@345: 
moel@345: namespace Aga.Controls.Threading
moel@345: {
moel@345: 	public sealed class WorkItem
moel@345: 	{
moel@345: 		private WaitCallback _callback;
moel@345: 		private object _state;
moel@345: 		private ExecutionContext _ctx;
moel@345: 
moel@345: 		internal WorkItem(WaitCallback wc, object state, ExecutionContext ctx)
moel@345: 		{
moel@345: 			_callback = wc; 
moel@345: 			_state = state; 
moel@345: 			_ctx = ctx;
moel@345: 		}
moel@345: 
moel@345: 		internal WaitCallback Callback
moel@345: 		{
moel@345: 			get
moel@345: 			{
moel@345: 				return _callback;
moel@345: 			}
moel@345: 		}
moel@345: 
moel@345: 		internal object State
moel@345: 		{
moel@345: 			get
moel@345: 			{
moel@345: 				return _state;
moel@345: 			}
moel@345: 		}
moel@345: 
moel@345: 		internal ExecutionContext Context
moel@345: 		{
moel@345: 			get
moel@345: 			{
moel@345: 				return _ctx;
moel@345: 			}
moel@345: 		}
moel@345: 	}
moel@345: }