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