示例#1
0
        IEnumerable <DocumentController> GetControllersForContentCheck()
        {
            // This may happen if the content view is still being initialized
            if (view == null)
            {
                return(Enumerable.Empty <DocumentController> ());
            }

            // Exclude root controller from GetAllControllers() since it will be already returned by GetActiveControllerHierarchy()
            return(view.GetActiveControllerHierarchy().Concat(view.GetAllControllers().Where(c => c != controller)));
        }
示例#2
0
 IEnumerable <DocumentController> GetControllersForContentCheck()
 {
     // Exclude root controller from GetAllControllers() since it will be already returned by GetActiveControllerHierarchy()
     return(view.GetActiveControllerHierarchy().Concat(view.GetAllControllers().Where(c => c != controller)));
 }