I am rewriting a classic asp web app using ASP.NET MVC 5.
There is currently lots of common code held in include files which I need to replicate in my new application.
I have done lots of research and believe static methods are the way to go.
I plan to use static methods for utilities that use only local data or input parameters (other than objects)
I plan to use instance methods for utilities that need to instantiate other objects etc.
My question is:
With IIS set to InProc, are static methods self-contained or could they be inadvertently cross referenced by other users?
This app will be installed on a single server, there are no web farms or collections of servers etc.
I’ve also seen Extension Methods mentioned but Microsoft suggest using these sparingly. Ultimately, is there a better way to replace the common code in include files other than static methods?
Thanks for reading.