Exemple #1
0
    static void Main()
    {
        var manager = new ServiceManager();

        manager.Add("hello!");
        IMessageCollection      messageManager      = manager;
        INotificationCollection notificationManager = manager;

        messageManager.Add("hello!");
        notificationManager.Add("1 new message");
    }
Exemple #2
0
 public RunCompletionNotifier(
     ITenantSettingsRepository tenantSettingsRepository,
     IAuditEventRepository auditEventRepository,
     INotificationCollection notifications,
     IPipelineAuditEventRepository pipelineAuditEventRepository)
 {
     _tenantSettingsRepository     = tenantSettingsRepository;
     _auditEventRepository         = auditEventRepository;
     _notifications                = notifications;
     _pipelineAuditEventRepository = pipelineAuditEventRepository;
 }
 public void Add(INotificationCollection collection)
 {
     Items.AddRange(collection);
 }
 public NotificationActionResult(INotificationCollection notifications)
 {
     this.notifications = notifications;
 }
 protected virtual IActionResult BadRequest(INotificationCollection notifications)
 {
     return(new NotificationActionResult(notifications));
 }