I would like to create singleton patter in Sharepoint EventReciever. The singleton have to be unique for every run of EventReceiver (I dont want to share data between ed and ing function - this is not trget).
I would like to load some settings data form custom list to my singleton instance. but after end of
itemAdding\ItemUpdated... i would like to forgot all data and in next run load it all back (data can be updated and i dont want to hold old information).
Static variable in some singleton class is not good approach (this variable will be shared between many items updating and will never refresh its content - I think only server restart clear this data). In standard web requests I used for this purpose
HTTPContext.Items, is in Sharepoint
EventReceiver possibility to use something similar?