Пример #1
0
 /// <summary>
 /// Check if entity is locked by another user
 /// </summary>
 /// <param name="entity">Entity to check locking status</param>
 /// <returns>True if locked by another user, false if not locked or locked by current user</returns>
 public bool IsLocked(EntityIdentifierBase entity)
 {
     return(IsLocked(entity.Id));
 }
Пример #2
0
 /// <summary>
 /// Chceck if entity is locked
 /// </summary>
 /// <param name="entity">Entity</param>
 /// <returns>Entity lock result</returns>
 public EntityLockResult IsLockedBy(EntityIdentifierBase entity)
 {
     return(IsLockedBy(entity.Id));
 }
Пример #3
0
 /// <summary>
 /// Unlock specified entity
 /// </summary>
 /// <param name="entity">Reference to entity which should be unlocked</param>
 /// <returns>Result of unlocking if succeeded or failed</returns>
 public EntityLockEnum UnLockEntity(EntityIdentifierBase entity)
 {
     return(UnLockEntity(entity.Id));
 }