/*
* 2006.7.6
* :
* 1.
* 2.
* 3.info.xmlCourseFileData
*
*
* 1.www.microsoft.com27
* 2.attributes.xml893.xml
* 3.attributes.xml893.xml564
* 4.756
* 5.893.xml
* 6.attributes.xml
* 6.5.
* 6.6.
* 7.
*/
using System;
using System.Threading;
using System.Collections.Generic;
using System.Text;
namespace IReaper.Initializer{
/// <summary>
///
/// </summary>
public abstract class AbstractInitTask
{
public static string AppDataFolder = null;
static AbstractInitTask()
{
string applicationData = System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
AppDataFolder = System.IO.Path.Combine(applicationData, "iReaper");
}
AutoResetEvent completedEvent = null;
//
protected object resultObj = null;
//
public static string DataFileName = "info.xml";
public static string IndexFileName = "index.zip";
//
private IAsyncTaskContainer initManager;
//
//InitializerTask
public void Invoke()
{
this.JobContent();
if (this.completedEvent != null)
this.completedEvent.Set();
}
//
protected abstract void JobContent();
//
//
public IAsyncTaskContainer InitManager
{
get { return initManager; }
set { initManager = value; }
}
/// <summary>
///
/// </summary>
public object ResultObject
{
get { return resultObj; }
}
/// <summary>
///
/// </summary>
public AutoResetEvent CompletedEvent
{
get { return completedEvent; }
set { completedEvent = value; }
}
}
}
|