using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using Tiger.IBusiness;
|
|
namespace Tiger.Business.MES.Transaction
|
{
|
/// <summary>
|
/// MES事务基类
|
/// </summary>
|
public abstract class MESTransactionBase : TransactionBase, IMESTransaction
|
{
|
/// <summary>
|
/// MES事务基类
|
/// </summary>
|
public MESTransactionBase()
|
{
|
|
}
|
|
/// <summary>
|
/// 关闭事务
|
/// </summary>
|
/// <param name="needSaveHistoryLog"></param>
|
/// <returns></returns>
|
public override bool Close(bool needSaveHistoryLog = false)
|
{
|
return base.Close(needSaveHistoryLog);
|
}
|
|
public override void Dispose()
|
{
|
try
|
{
|
Logger.Console.Info($"Dispose Transaction(ID: {TransID}]");
|
}
|
catch (System.Exception ex)
|
{
|
Logger.Console.Fatal(ex, $"Dispose Transaction Exception(ID: {TransID}]");
|
}
|
base.Dispose();
|
}
|
}
|
}
|