Start working on rust compile step
This commit is contained in:
15
crates/libjrpc/templates/CSharp/JRpcTransport.cs
Normal file
15
crates/libjrpc/templates/CSharp/JRpcTransport.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace __NAMESPACE__;
|
||||
|
||||
public delegate void NotifyPacket(string data);
|
||||
|
||||
public abstract class JRpcTransport {
|
||||
public event NotifyPacket? OnPacket;
|
||||
public abstract Task Write(string data);
|
||||
|
||||
// TODO: Spend some time finding a better permission, but it is fine for now
|
||||
public void SendPacketEvent(string data) {
|
||||
this.OnPacket?.Invoke(data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user