DavItem.LockAsync Method

Namespace:
Weavy.Web.WebDAV
Assembly:
Weavy.Web.dll

LockAsync(LockLevel, Boolean, NullableSpan>, String)

Locks this item.

WebDAV engine passes structure to this method by reference. All fields of the structure are provided by WebDAV client except field. In your Lock implementation you must create lock token and set member. You must also associate generated token with the hierarchy item in the repository during this call. The token is sent to the WebDAV client.

public Task LockAsync(LockLevel level, bool isDeep, TimeSpan? requestedTimeOut, string owner)

Parameters

level
ITHit.WebDAV.Server.Class2.LockLevel
isDeep
System.Boolean
requestedTimeOut
System.Nullable{System.TimeSpan}
owner
System.String

Returns

System.Threading.Tasks.Task{ITHit.WebDAV.Server.Class2.LockResult}

Instance of with information about the lock.