Ejemplo n.º 1
0
        public HandleCallResult HandleCall(HandleCallContext ctx, Object msg)
        {
            switch (msg)
            {
            case "hello bob":
                return(ctx.Reply("hello joe"));

            case Tuple <String, Pid> t when t.Item1 == "store":
                this.owner = t.Item2;
                return(ctx.Reply(new Atom("ok")));

            default:
                return(ctx.Reply("nope"));
            }
        }
Ejemplo n.º 2
0
 public HandleCallResult HandleCall(HandleCallContext ctx, Object msg)
 {
     return(ctx.Reply(this.name));
 }