コード例 #1
0
        public WeatherForcastNotHandler(IDynamicNotificationManager <WeatherForecastNotification> registrar)
        {
            _registrar = registrar;

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

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