From e6df8dcd2ea6b040f67338caa90d985537107adb Mon Sep 17 00:00:00 2001 From: sbwalker Date: Fri, 9 Feb 2024 08:47:20 -0500 Subject: [PATCH] preserve backward compatibility but flag methods as obsolete --- Oqtane.Client/UI/ModuleInstance.razor | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Oqtane.Client/UI/ModuleInstance.razor b/Oqtane.Client/UI/ModuleInstance.razor index 9e439f6d..89ab01ac 100644 --- a/Oqtane.Client/UI/ModuleInstance.razor +++ b/Oqtane.Client/UI/ModuleInstance.razor @@ -11,9 +11,32 @@ else } @code { + // this component is on the static side of the render mode boundary + // it passes state as serializable parameters across the boundary so that the state can be used by downstream interactive components + [CascadingParameter] protected PageState PageState { get; set; } [CascadingParameter] private Module ModuleState { get; set; } + + [Obsolete("AddModuleMessage is deprecated. Use ModuleBase.AddModuleMessage instead.", false)] + public void AddModuleMessage(string message, MessageType type) + { + } + + [Obsolete("AddModuleMessage is deprecated. Use ModuleBase.AddModuleMessage instead.", false)] + public void AddModuleMessage(string message, MessageType type, string position) + { + } + + [Obsolete("ShowProgressIndicator is deprecated. Use ModuleBase.ShowProgressIndicator instead.", false)] + public void ShowProgressIndicator() + { + } + + [Obsolete("HideProgressIndicator is deprecated. Use ModuleBase.HideProgressIndicator instead.", false)] + public void HideProgressIndicator() + { + } }