/// <summary> /// Releases the resources used by the NetworkStatistics. /// </summary> /// <param name="disposing">True to release both managed and unmanaged resources; false to release only unmanaged resources.</param> protected void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { _infoHandle.Dispose(); _infoHandle = null; } _disposed = true; }
internal NetworkStatistics(Interop.Stc.SafeStatsHandle handle) { Log.Debug(Globals.LogTag, "New Statistics Handle: " + handle); _infoHandle = handle; }