Interface IScope
Represents a scope.
Namespace: Umbraco.Core.Scoping
Assembly: Umbraco.Core.dll
Syntax
public interface IScope : IDisposable, IInstanceIdentifiable
Properties
View SourceDatabase
Gets the scope database.
Declaration
IUmbracoDatabase Database { get; }
Property Value
Type | Description |
---|---|
IUmbracoDatabase |
Events
Gets the scope event dispatcher.
Declaration
IEventDispatcher Events { get; }
Property Value
Type | Description |
---|---|
IEventDispatcher |
IsolatedCaches
Gets the scope isolated cache.
Declaration
IsolatedCaches IsolatedCaches { get; }
Property Value
Type | Description |
---|---|
IsolatedCaches |
Messages
Gets the scope event messages.
Declaration
EventMessages Messages { get; }
Property Value
Type | Description |
---|---|
EventMessages |
RepositoryCacheMode
Gets the repositories cache mode.
Declaration
RepositoryCacheMode RepositoryCacheMode { get; }
Property Value
Type | Description |
---|---|
RepositoryCacheMode |
SqlContext
Gets the Sql context.
Declaration
ISqlContext SqlContext { get; }
Property Value
Type | Description |
---|---|
ISqlContext |
Methods
View SourceComplete()
Completes the scope.
Declaration
bool Complete()
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether the scope has been successfully completed. |
Remarks
Can return false if any child scope has not completed.
ReadLock(Int32[])
Read-locks some lock objects.
Declaration
void ReadLock(params int[] lockIds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | lockIds | The lock object identifiers. |
WriteLock(Int32[])
Write-locks some lock objects.
Declaration
void WriteLock(params int[] lockIds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | lockIds | The lock object identifiers. |