protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// If disposing equals true, managed and unmanaged resources are disposed. /// If false, only unmanaged resources can be disposed. /// |
Результат | void |
protected virtual void Dispose(bool disposing)
{
if (!this.disposed)
{
// If disposing equals true, dispose all managed and unmanaged resources.
if (disposing)
{
// Free managed resources & other reference types:
if (this.httpServerTransport != null)
{
this.httpServerTransport.Dispose();
this.httpServerTransport = null;
}
if (this.httpListenerContext != null)
{
this.httpListenerContext = null;
}
if (this.logger != null)
{
this.logger = null;
}
}
}
// Call the appropriate methods to clean up unmanaged resources.
// If disposing is false, only the following code is executed:
this.disposed = true;
}
PccrtpServer::Dispose ( ) : void |