コード例 #1
0
 private bool HandleMessage(IMessage message, IMessageHandler handler)
 {
     try
     {
         handler.AsDynamic().Handle(message);
         return(true);
     }
     catch (Exception ex)
     {
         handler.AsDynamic().Handle(new ExceptionMessage(ex, message));
         return(false);
     }
 }