OBJProxy.cs 1.3 KB
Newer Older
1 2 3
using FLY.FeedbackRenZiJia.IService;
using FLY.FeedbackRenZiJia.OBJ_INTERFACE;

潘栩锋's avatar
潘栩锋 committed
4 5 6 7 8 9 10 11 12 13 14 15 16
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;

namespace FLY.FeedbackRenZiJia.Server.OBJProxy
{
    public class OBJProxy
    {
        public OBJProxy(int objsys_idx, TDGage gage)
        {
            TDGage mGage = gage;
潘栩锋's avatar
潘栩锋 committed
17

18 19 20
            var mFeedbackOBJProxy = new FObjBase.Reflect.Reflect_Proxy( objsys_idx, OBJ_INTERFACE_ID.FEEDBACK_ID, typeof(IFeedbackHeatService), mGage.mfeedback);
            var mBufOBJProxy = new FObjBase.Reflect.Reflect_Proxy(objsys_idx, OBJ_INTERFACE_ID.HEATBUF_ID, typeof(IHeatBufService), mGage.mfeedback.mHeatBuf);
            var mCellOBJProxy = new FObjBase.Reflect.Reflect_Proxy(objsys_idx, OBJ_INTERFACE_ID.HEATCELL_ID, typeof(IHeatCellService), mGage.mfeedback.mHeatCell);
21
            var bulkDbOBJProxy = new FObjBase.Reflect.Reflect_Proxy(objsys_idx, OBJ_INTERFACE_ID.BULKDB_ID, typeof(IBulkDbService), mGage.mHistoryDb);
22
            var mWarnSystemOBJProxy = new FLY.OBJComponents.Server.OBJProxy.WarningSystem_OBJProxy(objsys_idx, OBJ_INTERFACE_ID.WARNING_OBJ_ID, mGage.mWarning);
23

潘栩锋's avatar
潘栩锋 committed
24
            mFeedbackOBJProxy.CurrObjSys.Start_Conn_Server(
25
                new IPEndPoint(IPAddress.Any, gage.mSysParam.OBJ_Port),mFeedbackOBJProxy.ID);
潘栩锋's avatar
潘栩锋 committed
26 27 28
        }
    }
}