Class CheckOutService
- Namespace
- Dynamicweb.Content.Versioning
- Assembly
- Dynamicweb.dll
The CheckOutService class provides usecase specific operations for interacting with the CheckOutRepository functionality
public class CheckOutService : ICacheStorage<string, CheckOutObject>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
Check
Out Service
- Implements
- Inherited Members
Methods
CanCheckOut(CheckOutObject)
Returns a value indicating if the specified object can be checked out
Parameters
checkOutObject
CheckOut Object The object to check out
Returns
- bool
True if the object can be checked out, otherwise false
CheckIn(CheckOutObject)
Checks in the specified object
Parameters
checkedOutObject
CheckOut Object The lock information instance indicating the object to lock
Exceptions
CheckOut(CheckOutObject)
Checks out the specified object
Parameters
checkOutObject
CheckOut Object The object to check out
Exceptions
- Argument
Null Exception - Invalid
Operation Exception Thrown if the objects is already checkout by other user
ClearCache()
Resets all keys to the default value for objects stored in the object cache
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<string>Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
stringKey to reset
GetCache(IEnumerable<string>)
Parameters
keys
IEnumerable<string>