51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using Org.BouncyCastle.Bcpg.OpenPgp;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using MODULE_ID = System.UInt32;
|
|
using SORT_ORDER_NO = System.Int32;
|
|
|
|
|
|
namespace ServerBase;
|
|
|
|
|
|
// HANDOVER: ServerLogicApp에 등록하여 모듈을 사용할 경우 ModuleContext 정보를 아규먼트 넘겨 해당 모듈을 설정 한다.
|
|
|
|
|
|
public class ModuleContext
|
|
{
|
|
private readonly MODULE_ID m_module_id;
|
|
|
|
private readonly SORT_ORDER_NO m_sort_start_order_no;
|
|
private readonly SORT_ORDER_NO m_sort_stop_order_no;
|
|
|
|
private readonly IConfigParam m_config_param;
|
|
|
|
public ModuleContext( MODULE_ID moduleId
|
|
, SORT_ORDER_NO sortStartOrderNo, SORT_ORDER_NO sortStopOrderNo
|
|
, IConfigParam configParam )
|
|
{
|
|
m_module_id = moduleId;
|
|
m_sort_start_order_no = sortStartOrderNo;
|
|
m_sort_stop_order_no = sortStopOrderNo;
|
|
m_config_param = configParam;
|
|
}
|
|
|
|
public IConfigParam getConfigParam() => m_config_param;
|
|
|
|
public SORT_ORDER_NO getSortStartOrderNo() => m_sort_start_order_no;
|
|
|
|
public SORT_ORDER_NO getSortStopOrderNo() => m_sort_stop_order_no;
|
|
|
|
public MODULE_ID getModuleId() => m_module_id;
|
|
|
|
public string toBasicString()
|
|
{
|
|
return $"ModuleId:{m_module_id}, ConfigParam:{m_config_param.toBasicString()}";
|
|
}
|
|
}
|