ClientConnectionProvider
Abstract base class for managing client connections.
Provides connection options for a specified client type and instance ID.
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace System.ClientModel.Primitives
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class ClientConnectionProvider
{
private readonly ClientCache _subclients;
[EditorBrowsable(EditorBrowsableState.Never)]
public ClientCache Subclients {
get {
return _subclients;
}
}
protected ClientConnectionProvider(int maxCacheSize)
{
_subclients = new ClientCache(maxCacheSize);
}
public abstract ClientConnection GetConnection(string connectionId);
public abstract IEnumerable<ClientConnection> GetAllConnections();
}
}