From 24c17a0330eb2a72553be0091ea9f25412098b2b Mon Sep 17 00:00:00 2001 From: isc30 Date: Wed, 6 May 2020 08:55:36 +0200 Subject: [PATCH] in-code comments --- src/LazyComponents/LazyComponent/LazyNameAttribute.cs | 7 +++++++ src/LazyComponents/LazyRoute/LazyRouter.cs | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/LazyComponents/LazyComponent/LazyNameAttribute.cs b/src/LazyComponents/LazyComponent/LazyNameAttribute.cs index e44b104..c997677 100644 --- a/src/LazyComponents/LazyComponent/LazyNameAttribute.cs +++ b/src/LazyComponents/LazyComponent/LazyNameAttribute.cs @@ -2,11 +2,18 @@ namespace BlazorLazyLoading { + /// + /// Specifies a LazyName for a Component that can be later used by <Lazy> Component. + /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] public class LazyNameAttribute : Attribute { + /// + /// LazyName + /// public string ComponentName { get; } + /// public LazyNameAttribute(string componentName) { ComponentName = componentName; diff --git a/src/LazyComponents/LazyRoute/LazyRouter.cs b/src/LazyComponents/LazyRoute/LazyRouter.cs index cf2832d..2a64d0e 100644 --- a/src/LazyComponents/LazyRoute/LazyRouter.cs +++ b/src/LazyComponents/LazyRoute/LazyRouter.cs @@ -19,15 +19,17 @@ namespace BlazorLazyLoading { /// - /// A component that supplies route data corresponding to the current navigation state. + /// Provides SPA navigation for Pages and Routes in Lazy Modules. It is a direct replacement of <Router> /// public class LazyRouter : IComponent, IHandleAfterRender, IDisposable { - [Inject] private IManifestRepository _manifestRepository { get; set; } = null!; [Inject] private IAssemblyLoader _assemblyLoader { get; set; } = null!; + /// + /// Specifies a custom 'Loading' screen. + /// [Parameter] public RenderFragment Loading { get; set; } = null!; private bool isFirstRender = true;