Example #1
0
        public void RegisterMessage(Accessor accessor, NotificationMessage notificationMessage)
        {
            notificationMessage.AddAccessor(accessor);
            notificationMessage.AddSubstitution(TemplateValue.For(FIELD, LocalizationManager.GetText(accessor.InnerProperty)));

            _messages.Fill(notificationMessage);
        }
Example #2
0
        public void Validate(long count, ValidationContext context)
        {
            if (count <= 0) return;

            var message = new NotificationMessage(FastPackKeys.FIELD_MUST_BE_UNIQUE);
            _properties.Each(p => message.AddAccessor(new SingleProperty(p)));

            context.Notification.RegisterMessage(message);
        }
Example #3
0
 public void RegisterMessage(Accessor accessor, NotificationMessage notificationMessage)
 {
     notificationMessage.AddAccessor(accessor);
     _messages.Fill(notificationMessage);
 }