65 lines
2.1 KiB
C#
65 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using ServerBase;
|
|
|
|
|
|
namespace ServerCommon;
|
|
|
|
//===================================================================================
|
|
// LogAction + LogActionType 함께 생성해주는 클래스 이다.
|
|
//===================================================================================
|
|
|
|
public partial class LogActionEx : LogAction
|
|
{
|
|
public LogActionEx(LogActionType logActionType)
|
|
:base(logActionType.ToString())
|
|
{
|
|
}
|
|
|
|
public LogActionEx(LogActionType logActionType, Guid tranId)
|
|
: base(logActionType.ToString(), tranId)
|
|
{
|
|
}
|
|
|
|
}//LogAction
|
|
|
|
//===================================================================================
|
|
// ILogInvoker + LogDomainType 함께 생성해주는 클래스 이다.
|
|
//===================================================================================
|
|
|
|
public abstract partial class ILogInvokerEx : ILogInvoker
|
|
{
|
|
public ILogInvokerEx(LogDomainType logDomainType)
|
|
: base(logDomainType.ToString())
|
|
{
|
|
}
|
|
|
|
public ILogInvokerEx(LogDomainType logDomainType, LogAction logAction)
|
|
: base(logDomainType.ToString(), logAction)
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
//==============================================================================================
|
|
// QueryBatch + LogActionType 함께 생성해주는 클래스 이다.
|
|
//==============================================================================================
|
|
public class QueryBatchEx<TQueryRunner> : QueryBatch<TQueryRunner>
|
|
where TQueryRunner : IQueryRunner, new()
|
|
{
|
|
public QueryBatchEx( IWithLogActor logActor
|
|
, LogActionType logActionType
|
|
, DynamoDbClient dbClient
|
|
, bool isUseTransact = true, string transId = ""
|
|
, UInt16 retryCount = 3, UInt16 retryDelayMSec = 1000, string eventTid = "" )
|
|
: base( logActor, logActionType.ToString(), dbClient
|
|
, isUseTransact, transId, retryCount, retryDelayMSec )
|
|
{
|
|
getQueryRunner().setQueryBatch(this);
|
|
}
|
|
} |