View Source
Class CoreScope
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class CoreScope : ICoreScope, IInstanceIdentifiable
Constructors
View Source
CoreScope(IDistributedLockingMechanismFactory, ILoggerFactory, FileSystems, IEventAggregator, RepositoryCacheMode, Nullable<Boolean>, 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, Nullable<Boolean>, 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
Type |
Description |
System.Nullable<System.Boolean> |
|
Properties
View Source
CreatedThreadId
Declaration
public int CreatedThreadId { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
Depth
Declaration
public int Depth { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
InstanceId
Declaration
public Guid InstanceId { get; }
Property Value
View Source
IsolatedCaches
Declaration
public IsolatedCaches IsolatedCaches { get; }
Property Value
View Source
Locks
Declaration
public ILockingMechanism Locks { get; }
Property Value
View Source
Notifications
Declaration
public IScopedNotificationPublisher Notifications { get; }
Property Value
View Source
RepositoryCacheMode
Declaration
public RepositoryCacheMode RepositoryCacheMode { get; }
Property Value
View Source
ScopedFileSystems
Declaration
public bool ScopedFileSystems { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
View Source
ChildCompleted(Nullable<Boolean>)
Declaration
protected void ChildCompleted(bool? completed)
Parameters
Type |
Name |
Description |
System.Nullable<System.Boolean> |
completed |
|
View Source
Complete()
Declaration
Returns
Type |
Description |
System.Boolean |
A value indicating whether the scope is completed or not.
|
View Source
Dispose()
Declaration
public virtual void Dispose()
View Source
EagerReadLock(Int32[])
Declaration
public void EagerReadLock(params int[] lockIds)
Parameters
Type |
Name |
Description |
System.Int32[] |
lockIds |
|
View Source
EagerReadLock(TimeSpan, Int32)
Declaration
public void EagerReadLock(TimeSpan timeout, int lockId)
Parameters
Type |
Name |
Description |
TimeSpan |
timeout |
|
System.Int32 |
lockId |
|
View Source
EagerWriteLock(Int32[])
Declaration
public void EagerWriteLock(params int[] lockIds)
Parameters
Type |
Name |
Description |
System.Int32[] |
lockIds |
|
View Source
EagerWriteLock(TimeSpan, Int32)
Declaration
public void EagerWriteLock(TimeSpan timeout, int lockId)
Parameters
Type |
Name |
Description |
TimeSpan |
timeout |
|
System.Int32 |
lockId |
|
View Source
HandleScopedFileSystems()
Declaration
protected void HandleScopedFileSystems()
View Source
HandleScopedNotifications()
Declaration
protected void HandleScopedNotifications()
View Source
ReadLock(Int32[])
Declaration
public void ReadLock(params int[] lockIds)
Parameters
Type |
Name |
Description |
System.Int32[] |
lockIds |
|
View Source
ReadLock(TimeSpan, Int32)
Declaration
public void ReadLock(TimeSpan timeout, int lockId)
Parameters
Type |
Name |
Description |
TimeSpan |
timeout |
|
System.Int32 |
lockId |
|
View Source
SetParentScope(ICoreScope)
Declaration
protected void SetParentScope(ICoreScope coreScope)
Parameters
View Source
WriteLock(Int32[])
Declaration
public void WriteLock(params int[] lockIds)
Parameters
Type |
Name |
Description |
System.Int32[] |
lockIds |
|
View Source
WriteLock(TimeSpan, Int32)
Declaration
public void WriteLock(TimeSpan timeout, int lockId)
Parameters
Type |
Name |
Description |
TimeSpan |
timeout |
|
System.Int32 |
lockId |
|