Пример #1
0
        public Operations(string name,
                          OperationsStorage operationsStorage,
                          NotificationCenter.NotificationCenter notificationCenter,
                          DocumentsChanges changes)
        {
            _operationsStorage  = operationsStorage;
            _notificationCenter = notificationCenter;
            _changes            = changes;

            _logger = LoggingSource.Instance.GetLogger <Operations>(name);
        }
Пример #2
0
 public Operations(string name,
                   OperationsStorage operationsStorage,
                   NotificationCenter.NotificationCenter notificationCenter,
                   DocumentsChanges changes,
                   TimeSpan maxCompletedTaskLifeTime)
 {
     _name = name;
     _operationsStorage        = operationsStorage;
     _notificationCenter       = notificationCenter;
     _changes                  = changes;
     _maxCompletedTaskLifeTime = maxCompletedTaskLifeTime;
     LowMemoryNotification.Instance.RegisterLowMemoryHandler(this);
 }