mirror of
https://github.com/StarBeat/JsonRpc.git
synced 2026-03-08 12:05:29 +08:00
37 lines
675 B
C#
37 lines
675 B
C#
|
|
using CodeGenerator;
|
|||
|
|
using JsonRPC.Protocol;
|
|||
|
|
using JsonRPC.RPC;
|
|||
|
|
using System.Runtime.CompilerServices;
|
|||
|
|
|
|||
|
|
namespace TestInterceptor
|
|||
|
|
{
|
|||
|
|
public class Class1
|
|||
|
|
{
|
|||
|
|
static Class1() { Console.WriteLine("Class1 Class1"); }
|
|||
|
|
|
|||
|
|
[JsonRPC]
|
|||
|
|
public static void Test()
|
|||
|
|
{
|
|||
|
|
Console.WriteLine("static TestFunc");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[JsonRPC]
|
|||
|
|
public static void Echo(string msg)
|
|||
|
|
{
|
|||
|
|
Console.WriteLine(msg);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[JsonRPC]
|
|||
|
|
public static string Test1()
|
|||
|
|
{
|
|||
|
|
return "aaaaaaa";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
public static string Test11()
|
|||
|
|
{
|
|||
|
|
return "aaaaaaa";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|