~ruther/NosSmooth.Local

ref: e3484c3c19b7c13eb58121affde55a6e2fb2e310 NosSmooth.Local/src/Extensions/NosSmooth.Extensions.SharedBinding/Lifetime/IInstanceLifetime.cs -rw-r--r-- 511 bytes
e3484c3c — Rutherther feat(shared): add part of shared lifetime 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
//  IInstanceLifetime.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 Remora.Results;

namespace NosSmooth.Extensions.SharedBinding.Lifetime;

public interface IInstanceLifetime
{
    public SharedInstanceInfo Info { get; }

    public CancellationToken InstanceStopping { get; }

    public CancellationToken InstanceStopped { get; }

    public Task<Result> RequestStop();
}
Do not follow this link