Releases all resources used by the current instance of the SemaphoreSlim class.
Assemblies: mscorlib (in mscorlib.dll)
System.Threading (in System.Threading.dll)
Call Dispose when you are finished using the SemaphoreSlim. The Dispose method leaves the SemaphoreSlim in an unusable state. After calling Dispose, you must release all references to the SemaphoreSlim so the garbage collector can reclaim the memory that the SemaphoreSlim was occupying.