Ejemplo n.º 1
0
        public WeatherForcastNotHandler(IDynamicNotificationManager <WeatherForecastNotification> registrar)
        {
            _registrar = registrar;

            // Dynamically add this class as a handler for the notification type 'YourNotificationTypeHere'
            _registrar.RegisterHandler(this);
        }
Ejemplo n.º 2
0
            public TestObjectNotificationHandler3(IDynamicNotificationManager <TestObject> registrar)
            {
                _registrar = registrar;

                // Dynamically add this class as a handler for the notification type 'YourNotificationTypeHere'
                _registrar.RegisterHandler(this);
            }
 public BaseDynamicNotificationHandler(IDynamicNotificationManager <TNotification> registrar)
 {
     _manager = registrar;
     _manager.RegisterHandler(this);
 }