* Migrated database server registrar and messenger tasks into hosted services. Moved DatabaseServerRegistrar Options into injectable configuration. * Added further cases for unit tests on hosted services checking execution based on runtime level. * Migrated DatabaseServerMessengerOptions into configuration.
28 lines
1012 B
C#
28 lines
1012 B
C#
using System;
|
|
|
|
namespace Umbraco.Core.Configuration.Models
|
|
{
|
|
public class DatabaseServerMessengerSettings
|
|
{
|
|
/// <summary>
|
|
/// The maximum number of instructions that can be processed at startup; otherwise the server cold-boots (rebuilds its caches).
|
|
/// </summary>
|
|
public int MaxProcessingInstructionCount { get; set; } = 1000;
|
|
|
|
/// <summary>
|
|
/// The time to keep instructions in the database; records older than this number will be pruned.
|
|
/// </summary>
|
|
public TimeSpan TimeToRetainInstructions { get; set; } = TimeSpan.FromDays(2);
|
|
|
|
/// <summary>
|
|
/// The time to wait between each sync operations.
|
|
/// </summary>
|
|
public TimeSpan TimeBetweenSyncOperations { get; set; } = TimeSpan.FromSeconds(5);
|
|
|
|
/// <summary>
|
|
/// The time to wait between each prune operations.
|
|
/// </summary>
|
|
public TimeSpan TimeBetweenPruneOperations { get; set; } = TimeSpan.FromMinutes(1);
|
|
}
|
|
}
|