Google cannot tell me if there is an API available inside the SQL CLR to receive notification of pressure in memory.
It is obviously being used, since the AppDomain will be unloaded under memory pressure, but the question arises whether a notification was sent to the AppDomain before unloading, so that I can free some cache.
(My dll is already running in unsafe mode, so this is not a problem)
source
share