コード例 #1
0
        public void Initialize()
        {
            if (SboEngine.CheckLogin() && IbetEngine.CheckLogin())
            {
                if (SboEngine.Status == eServiceStatus.Unknown)
                {
                    SboBetPool = new Dictionary <string, int>();
                    //SboEngine.UpdateLiveDataChange += sbobetUpdateChange_Event;
                    //SboEngine.UpdateNonLiveDataChange += sbobetUpdateChange_Event;
                    SboEngine.OnExceptionEvent += OnExceptionEvent;
                    SboEngine.InitEngine();
                }

                if (IbetEngine.Status == eServiceStatus.Unknown)
                {
                    //IbetEngine.UpdateLiveDataChange += ibetUpdateChange_Event;
                    //IbetEngine.UpdateNonLiveDataChange += ibetUpdateChange_Event;

                    IbetEngine.OnExceptionEvent += OnExceptionEvent;
                    //IbetEngine.OnReConnectFail += IbetEngine_OnReConnectFail;
                    //IbetEngine.OnReConnectSuccess += IbetEngine_OnReConnectSuccess;
                    IbetBetPool = new Dictionary <string, int>();
                    IbetEngine.InitEngine();
                }

                Status = eServiceStatus.Initialized;
            }
        }
コード例 #2
0
 public void Initialize()
 {
     if (SboEngine.CheckLogin())
     {
         if (SboEngine.Status == eServiceStatus.Unknown)
         {
             SboBetPool = new Dictionary <string, int>();
             SboEngine.OnExceptionEvent += OnExceptionEvent;
             SboEngine.InitEngine();
         }
         PiBetPool = new Dictionary <string, int>();
         PiEngine.InitEngine();
         Status = eServiceStatus.Initialized;
     }
 }