Ejemplo n.º 1
0
 public void Accept(Action action)
 {
     if (acceptor.IsAccepted(action))
     {
         notify(action);
     }
 }
Ejemplo n.º 2
0
 public static void Notify(Action action)
 {
     foreach (HandlerBase handler in Handlers)
     {
         handler.Accept(action);
     }
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 protected abstract void notify(Action action);
Ejemplo n.º 5
0
 public bool IsAccepted(Action action)
 {
     return Acceptors.All(a => a.IsAccepted(action));
 }
Ejemplo n.º 6
0
 protected override void notify(Action action)
 {
     DmtDataProvider.AddAction(action);
 }