Fix_OBJProxy.cs 1015 Bytes
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FObjBase;
using FLY.Thick.Base.Server;
using FLY.Thick.Base.OBJ_INTERFACE;
using FLY.Thick.Base.IService;
using FLY.Thick.Base.Common;

namespace FLY.Thick.Base.Server.OBJProxy
{
    public class Fix_OBJProxy: FObj
    {
        #region 延时推送 MARKNO

        #endregion

        IFixService mFix;

潘栩锋's avatar
潘栩锋 committed
21
         public Fix_OBJProxy(int objsys_idx, UInt32 id, IFixService fix)
潘栩锋's avatar
潘栩锋 committed
22 23
            : base(objsys_idx)
        {
潘栩锋's avatar
潘栩锋 committed
24
            ID = id;
潘栩锋's avatar
潘栩锋 committed
25
            mFix = fix;
潘栩锋's avatar
潘栩锋 committed
26
            mFix.RegistTimeGridEvent(new FixEventHandler(GM_Fix_TimeGridEvent));
潘栩锋's avatar
潘栩锋 committed
27
        }
潘栩锋's avatar
潘栩锋 committed
28
         void GM_Fix_TimeGridEvent(object sender, FixEventArgs e)
潘栩锋's avatar
潘栩锋 committed
29
         {
潘栩锋's avatar
潘栩锋 committed
30 31
            string json = Newtonsoft.Json.JsonConvert.SerializeObject(e);
            CurrObjSys.PushObjInfoEx(
潘栩锋's avatar
潘栩锋 committed
32
                this, FIX_OBJ_INTERFACE.PUSH_TIMEGRID,
潘栩锋's avatar
潘栩锋 committed
33
                Misc.Converter.StringToBytes(json));
潘栩锋's avatar
潘栩锋 committed
34 35 36 37 38 39 40
         }
        #region FObj 重载

        #endregion

    }
}