src/OpenTelemetry.Exporter.Prometheus/PrometheusExporterMetricsHttpServer.cs
/// <summary>
/// Releases the unmanaged resources used by this class and optionally releases the managed resources.
/// </summary>
/// <param name="disposing"><see langword="true"/> to release both managed and unmanaged resources; <see langword="false"/> to release only unmanaged resources.</param>
Releases the unmanaged resources used by this class and optionally releases the managed resources.
Releases the unmanaged resources used by this class and optionally releases the managed resources .
protected virtual void Dispose(bool disposing)
        {
            if (this.httpListener != null && this.httpListener.IsListening)
            {
                this.Stop();
                this.httpListener.Close();
            }
        }
protected virtual void Dispose ( bool disposing ) { if ( this . httpListener != null && this . httpListener . IsListening ) { this . Stop ( ) ; this . httpListener . Close ( ) ; } }
Releases the unmanaged resources used by this class and optionally releases the managed resources.
Releases the unmanaged resources used by this class and optionally releases the managed resources .
disposing
bool
to release both managed and unmanaged resources;  to release only unmanaged resources.
to release both managed and unmanaged resources ; to release only unmanaged resources .