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.3.623.2
Syntaxpublic Task<BackgroundOperation> StartRecurringBackgroundOperation(
string name,
TimeSpan interval,
Action<BackgroundOperation> method
)
Public Function StartRecurringBackgroundOperation (
name As String,
interval As TimeSpan,
method As Action(Of BackgroundOperation)
) As Task(Of BackgroundOperation)
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:
TaskBackgroundOperationA started background operation.
See Also