Skip to content

Manage connection #2

@dimaaan

Description

@dimaaan

from @Ruhrpottpatriot:
I find it a bit counter intuitive, how you handled the keep alive process. If I understood it correctly, you call OpenAnsyc() and that Task only completes when the connection is closed.

Maybe change the code, so that every public async method accepts a CancellationToken and the receive Task is decoupled from ConnectAsync().

TaskCompletionSource could be an option. I'll look into it.

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