private static WorkFlow instance = null;
private static readonly object syncObj = new object();
/// <summary>
/// 创建实力
/// </summary>
public static WorkFlow Instance
{
get
{
if (instance == null)
{
lock (syncObj)
{
if (instance == null)
{
instance = new WorkFlow();
}
}
}
return instance;
}
}