2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 14:38:43 +00:00
This commit is contained in:
2026-06-08 16:15:57 +03:00
parent 8143da2eee
commit 340798a5fa
111 changed files with 20647 additions and 27 deletions
+13
View File
@@ -0,0 +1,13 @@
// Echo.SignalR/EchoHub.cs
using Microsoft.AspNetCore.SignalR;
namespace Esiur.Tests.RPC.SignalRServer;
public class EchoHub : Hub
{
public byte[] EchoBytes(byte[] data) => data;
public BusinessDocument[] EchoDocuments(BusinessDocument[] docs) => docs;
public int[] EchoIntArray(int[] array) => array;
public string[] EchoStringArray(string[] array) => array;
public Dictionary<string, BusinessDocument> EchoMap(Dictionary<string, BusinessDocument> map) => map;
public DocType EchoEnumArray(DocType[] docTypes) => docTypes.Length == 0 ? DocType.Quote : docTypes[^1];
}