Can we use Global.asax
file in .NET
Class Library projects? Because I have not seen anywhere that Global.asax
file can only be used only with Web based applications.
The code of Global.asax
file are being complied and being called by .net framework when application starts. I want to use similar kind of functionality with my class library i.e. when my class library is being loaded in the memory the Application_Start
of Global.asax
file of class library will be called.
I know that this can be used using static constructor but I want to utilize the Global.asax
for this.
Any suggestions/comments will be highly appreciated..
Thanks