Click or drag to resize

BackgroundOperationManagerStartRecurringBackgroundOperation Method (String, TimeSpan, ActionBackgroundOperation)

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

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

Parameters

name
Type: SystemString
The name of the operation.
interval
Type: SystemTimeSpan
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
Type: SystemActionBackgroundOperation
The method to invoke at given intervals.

Return Value

Type: TaskBackgroundOperation
A started background operation.
See Also