test: add `IObservable<IApiResponse<T>>` test by TimothyMakkison · Pull Request #1964 · reactiveui/refit
Build keeps failing because the initialisation of verify is somehow running twice despite being inside a static constructor. I have no idea how this happens, I thought type initialisation code only ran once.
Normally this would be fixed by using ModuleInitializer to run the code once, unfortunately net framework doesn't support this.
Instead I've added a static bool to check if initialisation code has been run yet.
Added a try catch statement for the initialisation logic.
I read the verify docs and it turns out I can use ModuleInitializer See here