public void Dispose()
 {
     _registry?.Remove(this);
     _registry  = null;
     _listeners = null;
 }
 public ActivitySource(string name, ActivitySourceRegistry registry)
 {
     Name      = name;
     _registry = registry;
     _registry?.Add(this);
 }