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