Example #1
0
 public void Accept(Action action)
 {
     if (acceptor.IsAccepted(action))
     {
         notify(action);
     }
 }
Example #2
0
 public static void Notify(Action action)
 {
     foreach (HandlerBase handler in Handlers)
     {
         handler.Accept(action);
     }
 }
        protected override void notify(Action action)
        {
            Email emailPrototype = EmailCreator.CreateEmail(action);

            IEnumerable<User> dataManagers = DmtDataProvider.GetUsers().Where(u => u.Roles.Any(r => r.Name == "DataManager"));

            EmailService.SendEmailsAsync(emailPrototype, dataManagers);
        }
Example #4
0
 protected abstract void notify(Action action);
 public bool IsAccepted(Action action)
 {
     return Acceptors.All(a => a.IsAccepted(action));
 }
Example #6
0
 protected override void notify(Action action)
 {
     DmtDataProvider.AddAction(action);
 }