ISiteSettingsService
Implementiert: IBaseEntityService<SiteSettings>, ICaptchaService, ICaptchaValidator<bool>
Methoden
public Task<SiteSettingsSecrets> GetSecretsAsync(long id, CancellationToken cancellationToken)
result = iSiteSettingsService.GetSecretsAsync(id, cancellationToken)
Explicit api-admin-only accessor for the platform secrets that are never serialized on the generic settings DTO (NugetOrgToken/CertPassword/ObfuscationPassword).
public Task<SiteStat> GetStatAsync(long skip, long? count, int days, CancellationToken cancellationToken)
result = iSiteSettingsService.GetStatAsync(skip, count, days, cancellationToken)
What the site is doing: the connections it holds, the queries it sends, and the methods it is asked for.
- skip
- How many of the counted queries to pass over.
- count
- How many of them to return.
- days
- How many days of API calls to add up. One means today.
- cancellationToken
- Cancellation token.
Rückgabe: The figures.
public Task RegenerateSiteMapAsync(CancellationToken cancellationToken)
result = iSiteSettingsService.RegenerateSiteMapAsync(cancellationToken)
Regenerate the single site-wide sitemap now (the SiteMapGenerator that the daily scheduled task runs), so the sitemap.xml index + shards are produced into SiteSettings.SiteMap on demand.
public Task RegenerateYmlAsync(CancellationToken cancellationToken)
result = iSiteSettingsService.RegenerateYmlAsync(cancellationToken)
Regenerate the single site-wide Yandex.Market YML product feed now (the YmlGenerator that the daily scheduled task runs), writing it into SiteSettings.Yml on demand.
public Task SetSecretsAsync(SiteSettingsSecrets secrets, CancellationToken cancellationToken)
result = iSiteSettingsService.SetSecretsAsync(secrets, cancellationToken)
Stores the platform secrets a save of the settings never carries (NugetOrgToken/CertPassword/ObfuscationPassword); a secret left empty keeps the stored one. Settings editors only.