/// <summary> /// Releases the unmanaged resources used by the <see cref="MailService"/> and /// optionally releases the managed resources. /// </summary> /// <remarks> /// Releases the unmanaged resources used by the <see cref="MailService"/> and /// optionally releases the managed resources. /// </remarks> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; /// <c>false</c> to release only the unmanaged resources.</param> protected virtual void Dispose(bool disposing) { if (disposing) { ProtocolLogger.Dispose(); } }