Click or drag to resize

IOUtilitiesWrapSharingViolationsAsync Method (FuncTask, IOUtilitiesWrapSharingViolationsExceptionsCallbackAsync, Int32, Int32)

Calls IO code under a sharing violations handling system.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Task WrapSharingViolationsAsync(
	Func<Task> action,
	IOUtilitiesWrapSharingViolationsExceptionsCallbackAsync exceptionsCallback = null,
	int maxRetryCount = 10,
	int waitTime = 100
)

Parameters

action
Type: SystemFuncTask
The action.
exceptionsCallback (Optional)
Type: callback.ShellBoost.Core.UtilitiesIOUtilitiesWrapSharingViolationsExceptionsCallbackAsync
The exceptions callback.
maxRetryCount (Optional)
Type: SystemInt32
The maximum retry count.
waitTime (Optional)
Type: SystemInt32
The wait time.

Return Value

Type: Task
A Task instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionaction is null.
See Also