View Source
Class CoreScope
Assembly: Umbraco.Core.dll
Syntax
public class CoreScope : ICoreScope, IInstanceIdentifiable
Constructors
View Source
CoreScope(IDistributedLockingMechanismFactory, ILoggerFactory, FileSystems, IEventAggregator, RepositoryCacheMode, bool?, IScopedNotificationPublisher?)
Declaration
protected CoreScope(IDistributedLockingMechanismFactory distributedLockingMechanismFactory, ILoggerFactory loggerFactory, FileSystems scopedFileSystem, IEventAggregator eventAggregator, RepositoryCacheMode repositoryCacheMode = RepositoryCacheMode.Unspecified, bool? shouldScopeFileSystems = null, IScopedNotificationPublisher? notificationPublisher = null)
Parameters
View Source
CoreScope(ICoreScope?, IDistributedLockingMechanismFactory, ILoggerFactory, FileSystems, IEventAggregator, RepositoryCacheMode, bool?, IScopedNotificationPublisher?)
Declaration
protected CoreScope(ICoreScope? parentScope, IDistributedLockingMechanismFactory distributedLockingMechanismFactory, ILoggerFactory loggerFactory, FileSystems scopedFileSystem, IEventAggregator eventAggregator, RepositoryCacheMode repositoryCacheMode = RepositoryCacheMode.Unspecified, bool? shouldScopeFileSystems = null, IScopedNotificationPublisher? notificationPublisher = null)
Parameters
Fields
View Source
Completed
Declaration
protected bool? Completed
Field Value
Properties
View Source
CreatedThreadId
Declaration
public int CreatedThreadId { get; }
Property Value
View Source
Depth
Gets the distance from the root scope.
Declaration
public int Depth { get; }
Property Value
View Source
HasParentScope
Declaration
protected bool HasParentScope { get; }
Property Value
View Source
InstanceId
Gets the instance unique identifier.
Declaration
public Guid InstanceId { get; }
Property Value
View Source
IsolatedCaches
Gets the scope isolated cache.
Declaration
public IsolatedCaches IsolatedCaches { get; }
Property Value
View Source
Locks
Declaration
public ILockingMechanism Locks { get; }
Property Value
View Source
Notifications
Gets the scope notification publisher
Declaration
public IScopedNotificationPublisher Notifications { get; }
Property Value
View Source
RepositoryCacheMode
Gets the repositories cache mode.
Declaration
public RepositoryCacheMode RepositoryCacheMode { get; }
Property Value
View Source
ScopedFileSystems
Declaration
public bool ScopedFileSystems { get; }
Property Value
Methods
View Source
ChildCompleted(bool?)
Declaration
protected void ChildCompleted(bool? completed)
Parameters
| Type |
Name |
Description |
| bool? |
completed |
|
View Source
Complete()
Declaration
Returns
| Type |
Description |
| bool |
A value indicating whether the scope is completed or not.
|
View Source
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public virtual void Dispose()
View Source
EagerReadLock(params int[])
Declaration
public void EagerReadLock(params int[] lockIds)
Parameters
| Type |
Name |
Description |
| int[] |
lockIds |
|
View Source
EagerReadLock(TimeSpan, int)
Declaration
public void EagerReadLock(TimeSpan timeout, int lockId)
Parameters
| Type |
Name |
Description |
| TimeSpan |
timeout |
|
| int |
lockId |
|
View Source
EagerWriteLock(params int[])
Declaration
public void EagerWriteLock(params int[] lockIds)
Parameters
| Type |
Name |
Description |
| int[] |
lockIds |
|
View Source
EagerWriteLock(TimeSpan, int)
Declaration
public void EagerWriteLock(TimeSpan timeout, int lockId)
Parameters
| Type |
Name |
Description |
| TimeSpan |
timeout |
|
| int |
lockId |
|
View Source
HandleScopedFileSystems()
Declaration
protected void HandleScopedFileSystems()
View Source
HandleScopedNotifications()
Declaration
protected void HandleScopedNotifications()
View Source
ReadLock(params int[])
Read-locks some lock objects.
Declaration
public void ReadLock(params int[] lockIds)
Parameters
| Type |
Name |
Description |
| int[] |
lockIds |
Array of lock object identifiers.
|
View Source
ReadLock(TimeSpan, int)
Read-locks some lock objects.
Declaration
public void ReadLock(TimeSpan timeout, int lockId)
Parameters
| Type |
Name |
Description |
| TimeSpan |
timeout |
The database timeout in milliseconds
|
| int |
lockId |
The lock object identifier.
|
View Source
SetParentScope(ICoreScope)
Declaration
protected void SetParentScope(ICoreScope coreScope)
Parameters
View Source
WriteLock(params int[])
Write-locks some lock objects.
Declaration
public void WriteLock(params int[] lockIds)
Parameters
| Type |
Name |
Description |
| int[] |
lockIds |
Array of object identifiers.
|
View Source
WriteLock(TimeSpan, int)
Write-locks some lock objects.
Declaration
public void WriteLock(TimeSpan timeout, int lockId)
Parameters
| Type |
Name |
Description |
| TimeSpan |
timeout |
The database timeout in milliseconds
|
| int |
lockId |
The lock object identifier.
|