Click or drag to resize

WebDavSessionRefreshLockAsync Method

IT Hit WebDAV Classes Reference
Prolongs the lock.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax
public Task<LockInfo> RefreshLockAsync(
	Uri item,
	string lockToken,
	Nullable<TimeSpan> timeout,
	IDictionary<string, string> headers = null,
	CancellationToken cancellationToken = null
)

Parameters

item
Type: SystemUri
URI of the item to be lock prolonged.
lockToken
Type: SystemString
Identifies lock to be prolonged.
timeout
Type: SystemNullableTimeSpan
New timeout to set. Set to TimeSpan.MaxValue for infinity.
headers (Optional)
Type: System.Collections.GenericIDictionaryString, String
Request headers.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

Type: TaskLockInfo
Instance of LockInfo with information about refreshed lock.
Exceptions
ExceptionCondition
PreconditionFailedException The included lock token was not enforceable on this resource or the server could not satisfy the request in the lockinfo XML element.
LockedException The resource is locked, so the method has been rejected.
NotFoundExceptionThis item doesn't exist on the server.
WebDavHttpExceptionServer returned unknown error.
WebDavExceptionUnexpected error occurred.
Remarks
Server can set lock with different timeout than the one was asked.
See Also