Obsolete message

This commit is contained in:
Bjarke Berg
2024-10-16 12:39:49 +02:00
parent 44ff8dc5e1
commit e58d72ad18

View File

@@ -4,6 +4,7 @@ namespace Umbraco.Cms.Core;
/// Provides an equivalent to the c# lock statement, to be used in a using block.
/// </summary>
/// <remarks>Ie replace <c>lock (o) {...}</c> by <c>using (new MonitorLock(o)) { ... }</c></remarks>
[Obsolete("Use System.Threading.Lock instead. This will be removed in Umbraco 16")]
public class MonitorLock : IDisposable
{
private readonly bool _entered;