Esempio n. 1
0
        void userEvent(Avatar avatar, sqlUserType type)
        {
            if (VPServices.App.LastConnect.SecondsToNow() < 10)
            {
                return;
            }

            lock (VPServices.App.DataMutex)
                connection.Insert(new sqlUserHistory
                {
                    ID   = avatar.Id,
                    Name = avatar.Name,
                    Type = type,
                    When = TDateTime.UnixTimestamp
                });
        }
Esempio n. 2
0
        void userEvent(Avatar avatar, sqlUserType type)
        {
            if ( VPServices.App.LastConnect.SecondsToNow() < 10 )
                return;

            lock (VPServices.App.DataMutex)
                connection.Insert ( new sqlUserHistory
                {
                    ID   = avatar.Id,
                    Name = avatar.Name,
                    Type = type,
                    When = TDateTime.UnixTimestamp
                });
        }