Does anyone know if it is possible to perform "Permanently Mark as Being Edited" on a page/block from code?
In edit mode this function is located in the Tools menu but I don't know how to activate this from code.
var inUseRepository = ServiceLocator.Current.GetInstance<EPiServer.Shell.Notification.IInUseNotificationRepository>();
AddedManually = true,
ContentGuid = myPage.ContentGuid,
CreateTime = DateTime.Now,
LanguageBranch = myPage.LanguageBranch,
Modified = DateTime.Now,
User = "Hulken"
That worked perfectly.