public async Task <RPCRes> Entry(PitayaSession pitayaSession, RPCMsg msg) { var response = new NPitaya.Protos.RPCRes { Msg = $"hello from csharp handler!!! :) {Guid.NewGuid().ToString()}", Code = 200 }; return(response); }
public async Task NotifyBind(PitayaSession pitayaSession, RPCMsg msg) { var response = new NPitaya.Protos.RPCRes { Msg = $"hello from csharp handler!!! :) {Guid.NewGuid().ToString()}", Code = 200 }; await pitayaSession.Bind("uidbla"); Console.WriteLine("handler executed with arg {0}", msg); Console.WriteLine("handler executed with session ipversion {0}", pitayaSession.GetString("ipversion")); }