コード例 #1
0
        /// <summary>
        /// Sets the site logo asynchronous.
        /// </summary>
        public async Task SetSiteLogoAsync()
        {
            if (string.IsNullOrEmpty(_branding.LogoUrl))
            {
                return;
            }
            _web.SiteLogoUrl = GetUrl(_branding.LogoUrl);
            await _webManager.ExecuteWebQueryAsync();

            _log?.LogInformation($"Logo set: {_web.SiteLogoUrl}");
        }