Click or drag to resize

IOUtilitiesWrapSharingViolationsAsyncT Method (FuncTaskT, IOUtilitiesWrapSharingViolationsExceptionsCallbackAsyncT, 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<T> WrapSharingViolationsAsync<T>(
	Func<Task<T>> func,
	IOUtilitiesWrapSharingViolationsExceptionsCallbackAsync<T> exceptionsCallback = null,
	int maxRetryCount = 10,
	int waitTime = 100
)

Parameters

func
Type: SystemFuncTaskT
The function.
exceptionsCallback (Optional)
Type: callback.ShellBoost.Core.UtilitiesIOUtilitiesWrapSharingViolationsExceptionsCallbackAsyncT
The exceptions callback.
maxRetryCount (Optional)
Type: SystemInt32
The maximum retry count.
waitTime (Optional)
Type: SystemInt32
The wait time.

Type Parameters

T
The return type.

Return Value

Type: TaskT
The Task result of the func() call.
Exceptions
ExceptionCondition
ArgumentNullExceptionfunc is null.
See Also