예제 #1
0
        public void RecordResetFailure(Guid _userGuid)
        {
            ResetFailureDAO dao = new ResetFailureDAO(MongoDB);

            ResetFailure failure = new ResetFailure
            {
                Guid         = Guid.NewGuid(),
                ParentGuid   = _userGuid,
                FailureTicks = DateTime.UtcNow.Ticks
            };

            dao.Persist(failure);
        }
예제 #2
0
        public int GetResetFailureCount(Guid _userGuid, DateTime _since)
        {
            ResetFailureDAO dao = new ResetFailureDAO(MongoDB);

            return(dao.GetCountSince(_userGuid, _since.Ticks));
        }