Пример #1
0
        public override int GetNumberOfUsersOnline()
        {
            int num;

            try
            {
                var      span = new TimeSpan(0, Membership.UserIsOnlineTimeWindow, 0);
                DateTime time = DateTime.Now.Subtract(span);
                num = SystemUserWrapper.FindOnlineUsersCount(time);
            }
            catch (Exception exception)
            {
                throw NhibernateMembershipProviderExceptionUtil.NewProviderException(this,
                                                                                     NHibernateProviderSR.
                                                                                     User_UnableToGetOnlineNumber,
                                                                                     exception);
            }
            return(num);
        }