private bool IsCrmAvailable(MailBox mailbox, ILogger log)
        {
            bool crmAvailable;

            lock (_locker)
            {
                if (_userCrmAvailabeDictionary.TryGetValue(mailbox.UserId, out crmAvailable))
                {
                    return(crmAvailable);
                }

                crmAvailable = mailbox.IsCrmAvailable(_tasksConfig.DefaultApiSchema, log);
                _userCrmAvailabeDictionary.GetOrAdd(mailbox.UserId, crmAvailable);
            }

            return(crmAvailable);
        }