/// <summary> /// Releases unmanaged and - optionally - managed resources /// </summary> /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param> private void Dispose(bool disposing) { StopEventsTracing(); NativeMethods.StopEngine(); if (disposing) { ClearReadersList(); InternalCallbackDelegate = null; } }
/// <summary> /// Initializes a new instance of the <see cref="Manager"/> class. /// </summary> public Manager() { readers = new List <CardReader>(); InternalCallbackDelegate = new ReaderCallbackDelegate(EventTracer); }