BackgroundOperationManagerStartRecurringBackgroundOperation(String, TimeSpan, ActionBackgroundOperation) Method

Creates a new background operation and starts it. The background operation runs the given method at given intervals.

Definition

Namespace: MFiles.VAF.Common
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public Task<BackgroundOperation> StartRecurringBackgroundOperation(
	string name,
	TimeSpan interval,
	Action<BackgroundOperation> method
)

Parameters

name  String
The name of the operation.
interval  TimeSpan
The target interval between method calls. If the method call takes longer than the interval, the method will be invoked immediately after the previous method call returns.
method  ActionBackgroundOperation
The method to invoke at given intervals.

Return Value

TaskBackgroundOperation
A started background operation.

See Also