mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 19:42:58 +00:00
27 lines
580 B
C#
27 lines
580 B
C#
using Esyur.Core;
|
|
using Esyur.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Esyur.Net
|
|
{
|
|
public class SendList : BinaryList
|
|
{
|
|
NetworkConnection connection;
|
|
IAsyncReply<object[]> reply;
|
|
|
|
public SendList(NetworkConnection connection, IAsyncReply<object[]> reply)
|
|
{
|
|
this.reply = reply;
|
|
this.connection = connection;
|
|
}
|
|
|
|
public override IAsyncReply<object[]> Done()
|
|
{
|
|
connection.Send(this.ToArray());
|
|
return reply;
|
|
}
|
|
}
|
|
}
|