mirror of
https://github.com/snltty/linker.git
synced 2025-10-05 09:06:54 +08:00
16 lines
594 B
C#
16 lines
594 B
C#
namespace linker.messenger.sforward.server
|
|
{
|
|
public interface ISForwardServerCahing
|
|
{
|
|
public bool TryAdd(string domain, string machineId);
|
|
public bool TryAdd(int port, string machineId);
|
|
|
|
public bool TryGet(string domain, out string machineId);
|
|
public bool TryGet(int port, out string machineId);
|
|
|
|
public bool TryRemove(string domain, string operMachineId, out string machineId);
|
|
public bool TryRemove(int port, string operMachineId, out string machineId);
|
|
public bool TryRemove(string machineId, out List<int> ports);
|
|
}
|
|
}
|