Skip to content

Running RemoveAllAsync after creating instance #2

@balonmilan

Description

@balonmilan

problem

When I run as first method after initializaion, it does not work, because Pairs property is empty.

NullModemEmulatorManager manager = new();
var ret = await manager.RemoveAllAsync(); //returns true, but pairs is empty, so nothing is removed

workaround

As workaround, I must first run ListAsync():

NullModemEmulatorManager manager = new();
await manager.ListAsync();
var ret = await manager.RemoveAllAsync();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions