Is your feature request related to a problem? Please describe.
When performing any action, the UI goes in "loading" state until the action is completed. If any other action is executed in the meantime, the app may crash.
Describe the solution you'd like
I would lock the UI to not be able to do anything else while that action is running.
Product
[1.0.121 ] Gordon WebApp
[3.0.11 ] Bare.WebApi
Additional context
Example of crash:
Restart Service
While doing so, import license
Application: Gordon.WebApp.Wpf.exe
CoreCLR Version: 8.0.424.16909
.NET Version: 8.0.4
Description: The process was terminated due to an unhandled exception.
Exception Info: Bare.WebApi.Client.ApiException: ServerInstance 'MicrosoftDynamicsNavServer$BC' is not running.
at Bare.WebApi.Client.RestClient.GetJsonResponse[T]()
at Bare.WebApi.Client.ServicesApi.GetLicenseInformation(String serviceName, String tenantId)
at Eos.Gordon.Core.Models.BcService.GetLicenseInformationAsync()
at Gordon.WebApp.Views.Servers.DockerContainers.ShowLicense() in D:\a\1\s\Gordon.WebApp\Views\Servers\DockerContainers.Actions.cs:line 173
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at Gordon.WebApp.Wpf.App.Main()
Is your feature request related to a problem? Please describe. When performing any action, the UI goes in "loading" state until the action is completed. If any other action is executed in the meantime, the app may crash.
Describe the solution you'd like I would lock the UI to not be able to do anything else while that action is running.
Product
Additional context Example of crash: