/// <inheritdoc /> public void Dispose() { if (registry != null) { registry.Dispose(); registry = null; } }