private void InitData()
{
lock (lockHelper)
{
string fnl = Directory.GetFiles(BkExecManager.DataPath);
foreach (string s in fnl)
{
if (!s.Contains(BKExecItemState.出错.ToString()))
{
ExecItem ei = ExecItem.GetObject(s);
m_BkExecItemList.Enqueue(ei);
}
}
}
}
public void AddBkExecItem(ExecItem ei)
{
lock (lockHelper)
{
//锁定资源。
m_BkExecItemList.Enqueue(ei);
}
}
public void DoBkExec(object Msg)
{
ExecItem ei;
while (m_BkExecItemList.Count > 0)
{
lock (lockHelper)
{
ei = m_BkExecItemList.Dequeue();
}
int rv = -1;
try
{
BindingFlags flags = BindingFlags.InvokeMethod | BindingFlags.Instance |
BindingFlags.Public | BindingFlags.Static;
object t = ei.ExecItemClass.InvokeMember(ei.ExecItemMethed, flags,
&n