I\'m reusing old WinForms client code in a Blazor Server app. The problem is that the WinForms code expects a few static variables with state that are created when the app start