Files
linker/linker.messenger.relay/server/validator/IRelayServerValidator.cs
snltty 0fee50af46 demo
2024-12-21 02:12:49 +08:00

21 lines
673 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using linker.messenger.signin;
using RelayInfo = linker.messenger.relay.client.transport.RelayInfo;
namespace linker.messenger.relay.server.validator
{
/// <summary>
/// 中继验证
/// </summary>
public interface IRelayServerValidator
{
/// <summary>
/// 验证
/// </summary>
/// <param name="relayInfo">中继信息</param>
/// <param name="fromMachine">来源客户端</param>
/// <param name="toMachine">目标客户端可能为null</param>
/// <returns></returns>
public Task<string> Validate(RelayInfo relayInfo, SignCacheInfo fromMachine, SignCacheInfo toMachine);
}
}