Example #1
0
        protected virtual TimeSpan CalculateLicenceExpiresIn()
        {
            //ServerTime is UTC
            DateTime currentRefTime = serverTime.ServerTime;

            return(LicencedHost.LicenseExpiryUTC().Subtract(currentRefTime));
        }
Example #2
0
        private void SetMinimumLicenseValueHost(Pool pool)
        {
            LicencedHost = pool.Connection.Resolve(pool.master);

            if (LicencedHost == null)
            {
                return;
            }

            foreach (Host host in pool.Connection.Cache.Hosts)
            {
                if (host.LicenseExpiryUTC() < LicencedHost.LicenseExpiryUTC())
                {
                    LicencedHost = host;
                }
            }
        }