OBJProxy.cs 1.16 KB
Newer Older
1
using FLY.OBJComponents.Server.OBJProxy;
2
using FLY.Weight2.IService;
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
using FLY.Weight2.Server.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace FLY.Weight2.Server.OBJProxy
{
    public class OBJProxy
    {
        public OBJProxy(int objsys_idx, TDGage gage)
        {
            TDGage mGage = gage;
18
            var weightSystemOBJProxy = new WeightSystem_OBJProxy(
19 20 21
                objsys_idx,
                OBJ_INTERFACE.OBJ_INTERFACE.WEIGHTS_OBJ_ID,
                gage.mData);
22 23 24
            
            var mFlowListOBJProxy = new FObjBase.Reflect.Reflect_Proxy(
                objsys_idx, 
25
                OBJ_INTERFACE.OBJ_INTERFACE.WEIGHTS_OBJ_FLOW_ID,
26 27
                typeof(IBulkDbFlowService), gage.mHistoryDb.FlowBuffer);

28

29
            var mWarnSystemOBJProxy = new WarningSystem_OBJProxy(
30 31 32 33 34
                objsys_idx,
                OBJ_INTERFACE.OBJ_INTERFACE.WARNING_OBJ_ID,
                gage.mWarning);

            weightSystemOBJProxy.CurrObjSys.Start_Conn_Server(
35
                new IPEndPoint(IPAddress.Any, gage.mSysParam.OBJ_Port));
36 37 38
        }
    }
}