private static void DestroyContext()

in src/main/csharp/Connection.cs [70:89]


		private static void DestroyContext()
		{
			lock(contextLock)
			{
				if(0 == --instanceCount)
				{
					lock(producerCacheLock)
					{
						foreach(KeyValuePair<string, ProducerRef> cacheItem in producerCache)
						{
							cacheItem.Value.producer.Unbind(cacheItem.Key);
						}

						producerCache.Clear();
					}

					Connection._context.Dispose();
				}
			}
		}