Ejemplo n.º 1
0
            private static bool TryParseEnum(string enumMember, out MaskedEmailAction action)
            {
                action = MaskedEmailAction.Unknown;

                try
                {
                    action = JsonConvert.DeserializeObject <MaskedEmailAction>("\"" + enumMember + "\"", new StringEnumConverter());
                    return(true);
                }
                catch (JsonSerializationException)
                {
                    return(false);
                }
            }
 protected MaskedEmailCommand(MaskedEmailAction action, string address)
 {
     Action  = action;
     Address = address;
 }
Ejemplo n.º 3
0
 public MaskedEmailCommandActionException(MaskedEmailAction action)
     : base($"The value \"{action}\" is not a valid masked email command.")
 {
     Action = action;
 }