mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-31 16:01:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			515 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			515 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Esiur.Core;
 | |
| using Esiur.Data;
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Text;
 | |
| 
 | |
| namespace Esiur.Net;
 | |
| 
 | |
| public class SendList : BinaryList
 | |
| {
 | |
|     NetworkConnection connection;
 | |
|     AsyncReply<object[]> reply;
 | |
| 
 | |
|     public SendList(NetworkConnection connection, AsyncReply<object[]> reply)
 | |
|     {
 | |
|         this.reply = reply;
 | |
|         this.connection = connection;
 | |
|     }
 | |
| 
 | |
|     public override AsyncReply<object[]> Done()
 | |
|     {
 | |
|         connection.Send(this.ToArray());
 | |
|         return reply;
 | |
|     }
 | |
| }
 |