mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 14:38:43 +00:00
RPC Test
This commit is contained in:
@@ -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];
|
||||
}
|
||||
Reference in New Issue
Block a user