~ruther/NosSmooth.Comms

ref: c5b50a91331cc8cfdb660fbe12d0033e8c51d695 NosSmooth.Comms/src/Core/NosSmooth.Comms.Abstractions/IClient.cs -rw-r--r-- 677 bytes
c5b50a91 — Rutherther chore: include all assets from NosSmooth.Injector 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
//  IClient.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Data;
using Remora.Results;

namespace NosSmooth.Comms.Data;

/// <summary>
/// An abstraction for a client connection.
/// </summary>
public interface IClient : IConnection
{
    /// <summary>
    /// Connect to the server.
    /// </summary>
    /// <param name="ct">The cancellation token used for cancelling the operation.</param>
    /// <returns>A result that may or may not have succeeded.</returns>
    public Task<Result> ConnectAsync(CancellationToken ct = default);
}
Do not follow this link