We need to do some extra process when deleting a block, we need a list which using the block, but don't know how to get this list.
Please anyone know how to get this list can give me an advice?
Thank you very much
Check the non-striked example in my blog article
Below code gave me the expected result:
var repository = ServiceLocator.Current.GetInstance<IContentRepository>();
var refPages = (List<ReferenceInformation>) repository.GetReferencesToContent(pageLink, false);