Esempio n. 1
0
        /// <summary>
        /// Generates a list of Entity IDs
        /// </summary>
        public void LoadStartupEntities(EventCallback <RealmEventArgs> callback)
        {
            _callback = callback;

            try
            {
                var client = new DatabaseClient(this, _dbManager as IDatabaseLoadBalancer);
                client.BeginTransaction();
                client.AddCommand("dbo", "game_GetStartupZones", null, callback);
                client.PerformTransaction(OnLoadStartupEntitiesCompleted, null);
            }
            catch (Exception ex)
            {
                ex.Handle(ExceptionHandlingOptions.RecordAndThrow);
            }
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="callback"></param>
        public void LoadChannels(EventCallback <RealmEventArgs> callback)
        {
            _callback = callback;
            _log.Debug("Executing stored procedure 'game_GetChannels'");

            try
            {
                var client = new DatabaseClient(this, _dbManager as IDatabaseLoadBalancer);
                client.BeginTransaction();
                client.AddCommand("live", "game_GetChannels");
                client.PerformTransaction(OnLoadChannelsComplete, null);
            }
            catch (Exception ex)
            {
                ex.Handle(ExceptionHandlingOptions.RecordAndThrow);
            }
        }