Add depth property to ICoreScope (#12540)

This commit is contained in:
Paul Johnson
2022-06-07 10:25:05 +01:00
committed by GitHub
parent b6e93116dc
commit ea9d27c038
3 changed files with 50 additions and 1 deletions

View File

@@ -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