// IManagedConnectionProvider.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System.Collections.Generic;
namespace WelsonJS.Launcher
{
///
/// Exposes connection status information for use by the connection monitor UI.
///
public interface IManagedConnectionProvider
{
///
/// Gets a human-friendly name for the connection type managed by this provider.
///
string ConnectionType { get; }
///
/// Retrieves the current connections handled by the provider.
///
IReadOnlyCollection GetStatuses();
///
/// Attempts to close the connection associated with the supplied cache key.
///
bool TryClose(string key);
}
}