private static void ReplaceLockOwner(Mediachase.Net.Wdom.LockInfoElement lockInfoEl) { if (lockInfoEl != null) { string newValue = Security.CurrentUser.Login; if (!String.IsNullOrEmpty(newValue)) { lockInfoEl.Owner.InnerText = newValue; } } }
public override OpaqueLockToken Lock(Mediachase.Net.Wdom.DepthValue depth, string timeout, Mediachase.Net.Wdom.LockInfoElement lockInfoEl, Mediachase.Net.Wdom.WebDavElementInfo element) { throw new NotImplementedException(); }
/// <summary> /// Locks the specified depth. /// </summary> /// <param name="depth">The depth.</param> /// <param name="timeout">The timeout.</param> /// <param name="lockInfoEl">The lock info el.</param> /// <param name="element">The element.</param> /// <returns></returns> public override OpaqueLockToken Lock(Mediachase.Net.Wdom.DepthValue depth, string timeout, Mediachase.Net.Wdom.LockInfoElement lockInfoEl, Mediachase.Net.Wdom.WebDavElementInfo element) { ReplaceLockOwner(lockInfoEl); PropertyInfoCollection collection = GetProperties(element); return(WebDavLockManager.Lock(this, depth, timeout, lockInfoEl, collection)); }