Class ScheduledPublishing
Hosted service implementation for scheduled publishing feature.
Namespace: Umbraco.Cms.Infrastructure.HostedServices
Assembly: Umbraco.Infrastructure.dll
Syntax
public class ScheduledPublishing : RecurringHostedServiceBase
Remarks
Runs only on non-replica servers.
Constructors
View SourceScheduledPublishing(IRuntimeState, IMainDom, IServerRoleAccessor, IContentService, IUmbracoContextFactory, ILogger<ScheduledPublishing>, IServerMessenger, ICoreScopeProvider)
Initializes a new instance of the ScheduledPublishing class.
Declaration
public ScheduledPublishing(IRuntimeState runtimeState, IMainDom mainDom, IServerRoleAccessor serverRegistrar, IContentService contentService, IUmbracoContextFactory umbracoContextFactory, ILogger<ScheduledPublishing> logger, IServerMessenger serverMessenger, ICoreScopeProvider scopeProvider)
Parameters
Type | Name | Description |
---|---|---|
IRuntimeState | runtimeState | |
IMainDom | mainDom | |
IServerRoleAccessor | serverRegistrar | |
IContentService | contentService | |
IUmbracoContextFactory | umbracoContextFactory | |
ILogger<ScheduledPublishing> | logger | |
IServerMessenger | serverMessenger | |
ICoreScopeProvider | scopeProvider |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Returns
Type | Description |
---|---|
Task |