main
1using System;
2
3namespace solidware.financials.infrastructure.eventing
4{
5 public class AnonymousSubscriber<T> : EventSubscriber<T> where T : Event
6 {
7 Action<T> action;
8
9 public AnonymousSubscriber(Action<T> action)
10 {
11 this.action = action;
12 }
13
14 public void notify(T message)
15 {
16 action(message);
17 }
18 }
19}