Skip to content

ADBClient的理解求助 #138

@scottfly189

Description

@scottfly189

What can we do for you?

尊敬的作者:
近期我做的应用用到AdvancedSharpAdbClient,用起来很爽,不过今天碰到在多线程下socket耗尽,adbd拒绝连接的情况,我认识到我在代码中到处用var client = _DeviceData!.CreateDeviceClient().AdbClient;这种代码建AdbClient是错误的,我重新看了一下文档,看到有下面这句话:

If you want to automate 2 or more devices at the same time, you must remember: 1 device - 1 AdbClient class

我想求证一下,这句话的理解是不是:
多设备的情况下,是不是用一个字典保存这个AdbClient,一个设备对应一个AdbClient,关于请求这个设备,就单独用这个client来连接?在多线程下是否线程 安全?

因为我现在水平比较菜,还看不懂源码,所以来请教您一下,
谢谢您做出这么利害的框架

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions