protected override AsReciever BuildRecieve(AsRecieverBuilder builder) { return(builder .Match <GreetingMessage>(c => SendTelegram(c.Sender, c.GetPayload <GreetingMessage>())) .Build()); }
protected override AsReciever BuildRecieve(AsRecieverBuilder builder) { return(builder.Default(c => { Debug.Log("Recieved message: " + c); }).Build()); }