예제 #1
0
 public NotificationFetcher(NotificationFetcherConfig fetcherConfig, IRemotingConnection connection, RemotingMBeanServerConnection serverConnection)
 {
     _connection = connection;
     _serverConnection = serverConnection;
     _maxBatchSize = fetcherConfig.MaxNotificationBatchSize;
     if (fetcherConfig.Proactive)
     {
         _timer = new Timer(FetchNotifications, null, TimeSpan.Zero, fetcherConfig.FetchDelay);
     }
     else
     {
         FetchNotifications(null);
     }
 }
예제 #2
0
 public NotificationFetcher(NotificationFetcherConfig fetcherConfig, IRemotingConnection connection, RemotingMBeanServerConnection serverConnection)
 {
     _connection       = connection;
     _serverConnection = serverConnection;
     _maxBatchSize     = fetcherConfig.MaxNotificationBatchSize;
     if (fetcherConfig.Proactive)
     {
         _timer = new Timer(FetchNotifications, null, TimeSpan.Zero, fetcherConfig.FetchDelay);
     }
     else
     {
         FetchNotifications(null);
     }
 }