From 284976b239ca16180d73048e27ce5da872234478 Mon Sep 17 00:00:00 2001 From: i28423 Date: Thu, 28 Sep 2023 15:12:10 -0600 Subject: [PATCH] Added ViewCount property for testing, updated comments (#263) --- src/DialogServiceViews.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/DialogServiceViews.cs b/src/DialogServiceViews.cs index 95da91b5..fdc966cb 100644 --- a/src/DialogServiceViews.cs +++ b/src/DialogServiceViews.cs @@ -83,7 +83,7 @@ private static void IsRegisteredChanged( #endregion /// - /// Gets the registered views. + /// Gets the registered views on the current thread. /// internal static IEnumerable Views => InternalViews .Where(view => @@ -92,6 +92,10 @@ private static void IsRegisteredChanged( .Select(view => view.Value) .ToArray(); + /// + /// Gets the total count of the registered views + /// + internal static int ViewCount => InternalViews.Count; /// /// Registers specified view.