Add depth property to ICoreScope (#12540)
This commit is contained in:
@@ -478,6 +478,19 @@ namespace Umbraco.Cms.Infrastructure.Scoping
|
||||
}
|
||||
}
|
||||
|
||||
public int Depth
|
||||
{
|
||||
get
|
||||
{
|
||||
if (ParentScope == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ParentScope.Depth + 1;
|
||||
}
|
||||
}
|
||||
|
||||
public IScopedNotificationPublisher Notifications
|
||||
{
|
||||
get
|
||||
|
||||
Reference in New Issue
Block a user