Skip to content

WmiConnections are never closed / disposed #94

@campersau

Description

@campersau

WmiConnections are stored in a dictionary for reuse and are never closed / disposed

private readonly Dictionary<string, WmiConnection> _wmiConnectionDict = new Dictionary<string, WmiConnection>();

I guess there is a performance reason for caching these WmiConnections otherwise one should be used for each query and then be closed / disposed.
Maybe it would be best to implement IDisposable in IHardwareInfo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions