Closed Leblanc2025 closed 3 weeks ago
版本2.0.0.beta27
private IConnection _connection;
protected internal IConnection Connection
{
get { return _connection; }
}
AppSession有这个,Connection.SendAsync(xxx)
ValueTask IAppSession.SendAsync(ReadOnlyMemory<byte> data, CancellationToken cancellationToken)
{
return _connection.SendAsync(data, cancellationToken);
}
ValueTask IAppSession.SendAsync<TPackage>(IPackageEncoder<TPackage> packageEncoder, TPackage package, CancellationToken cancellationToken)
{
return _connection.SendAsync(packageEncoder, package, cancellationToken);
}
我用的这个,
@7haihai 谢谢您,已经解决。 public async Task SendAsync(byte[] data) { await Connection.SendAsync(send); }