Interface IScope
Namespace: Umbraco.Cms.Core.Scoping
Assembly: Umbraco.Infrastructure.dll
Syntax
[Obsolete("Please use Umbraco.Cms.Infrastructure.Scoping.IScope or Umbraco.Cms.Core.Scoping.ICoreScope instead.")]
public interface IScope : IScope, ICoreScope, IInstanceIdentifiable
Properties
View SourceDatabase
Gets the scope database.
Declaration
IUmbracoDatabase Database { get; }
Property Value
Type | Description |
---|---|
IUmbraco |
Events
Gets the scope event dispatcher.
Declaration
IEventDispatcher Events { get; }
Property Value
Type | Description |
---|---|
IEvent |
IsolatedCaches
Gets the scope isolated cache.
Declaration
IsolatedCaches IsolatedCaches { get; }
Property Value
Type | Description |
---|---|
Isolated |
Messages
Gets the scope event messages.
Declaration
EventMessages Messages { get; }
Property Value
Type | Description |
---|---|
Event |
Notifications
Gets the scope notification publisher
Declaration
IScopedNotificationPublisher Notifications { get; }
Property Value
Type | Description |
---|---|
IScoped |
RepositoryCacheMode
Gets the repositories cache mode.
Declaration
RepositoryCacheMode RepositoryCacheMode { get; }
Property Value
Type | Description |
---|---|
Repository |
SqlContext
Gets the Sql context.
Declaration
ISqlContext SqlContext { get; }
Property Value
Type | Description |
---|---|
ISql |
Methods
View SourceComplete()
Completes the scope.
Declaration
bool Complete()
Returns
Type | Description |
---|---|
System. |
A value indicating whether the scope has been successfully completed. |
Remarks
Can return false if any child scope has not completed.
EagerReadLock(Int32[])
Declaration
void EagerReadLock(params int[] lockIds)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockIds |
EagerReadLock(TimeSpan, Int32)
Declaration
void EagerReadLock(TimeSpan timeout, int lockId)
Parameters
Type | Name | Description |
---|---|---|
System. |
timeout | |
System. |
lockId |
EagerWriteLock(Int32[])
Declaration
void EagerWriteLock(params int[] lockIds)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockIds |
EagerWriteLock(TimeSpan, Int32)
Declaration
void EagerWriteLock(TimeSpan timeout, int lockId)
Parameters
Type | Name | Description |
---|---|---|
System. |
timeout | |
System. |
lockId |
ReadLock(Int32[])
Read-locks some lock objects.
Declaration
void ReadLock(params int[] lockIds)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockIds | Array of lock object identifiers. |
ReadLock(TimeSpan, Int32)
Read-locks some lock objects.
Declaration
void ReadLock(TimeSpan timeout, int lockId)
Parameters
Type | Name | Description |
---|---|---|
System. |
timeout | The database timeout in milliseconds |
System. |
lockId | The lock object identifier. |
WriteLock(Int32[])
Write-locks some lock objects.
Declaration
void WriteLock(params int[] lockIds)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockIds | Array of object identifiers. |
WriteLock(TimeSpan, Int32)
Write-locks some lock objects.
Declaration
void WriteLock(TimeSpan timeout, int lockId)
Parameters
Type | Name | Description |
---|---|---|
System. |
timeout | The database timeout in milliseconds |
System. |
lockId | The lock object identifier. |