コード例 #1
0
        internal static bool IgnoreRelocationTimeConstraints()
        {
            DateTime utcNow = DateTime.UtcNow;

            if (utcNow > TenantRelocationStateCache.nextRegistryCheckTimestamp)
            {
                TenantRelocationStateCache.ignoreRelocationTimeConstraints = TenantRelocationStateCache.ReadIgnoreRelocationTimeConstraintsValue();
                TenantRelocationStateCache.nextRegistryCheckTimestamp      = utcNow.AddMinutes(5.0);
            }
            return(TenantRelocationStateCache.ignoreRelocationTimeConstraints);
        }