Class ScopeExtensions
Provides extension methods for managing Umbraco scope lifecycles and operations.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Infrastructure.dll
Syntax
public static class ScopeExtensions
Methods
View SourceReadLock(IScope, ICollection<int>)
Acquires read locks on the specified lock IDs within the given scope.
Declaration
public static void ReadLock(this IScope scope, ICollection<int> lockIds)
Parameters
| Type | Name | Description |
|---|---|---|
| IScope | scope | The scope on which to acquire the read locks. |
| ICollection<int> | lockIds | The collection of lock IDs to acquire read locks for. |
WriteLock(IScope, ICollection<int>)
Acquires write locks on the specified lock IDs within the given scope.
Declaration
public static void WriteLock(this IScope scope, ICollection<int> lockIds)
Parameters
| Type | Name | Description |
|---|---|---|
| IScope | scope | The scope on which to acquire the write locks. |
| ICollection<int> | lockIds | The collection of lock IDs to acquire write locks for. |