Exemplo n.º 1
0
 public static BackwardReply NullIfNothing(BackwardReply reply)
 {
     if (reply == null || reply.Action == ReplyAction.None)
     {
         return(null);
     }
     return(reply);
 }
Exemplo n.º 2
0
 public static bool Is(BackwardReply reply, ReplyAction action)
 {
     return(reply != null && reply.Action == action);
 }
Exemplo n.º 3
0
 public static bool IsNothing(BackwardReply reply)
 {
     return(reply == null || reply.Action == ReplyAction.None);
 }