Beispiel #1
0
        /// <summary>
        /// Creates a new data service
        /// </summary>
        /// <param name="serviceProvider">The container where this service is sited</param>
        /// <param name="taskManagerService">The task manager</param>
        /// <param name="srcMLService">The srcML service</param>
        /// <param name="workingSetService">The working set factory service</param>
        public VsDataService(SrcMLServicePackage serviceProvider, ITaskManagerService taskManagerService, ISrcMLGlobalService srcMLService, IWorkingSetRegistrarService workingSetService)
            : base(serviceProvider, taskManagerService) {
            _srcMLService = srcMLService;
            _workingSetFactories = workingSetService;

            if(_srcMLService.IsMonitoring) {
                _srcMLService_MonitoringStarted(this, new EventArgs());
            }
            Subscribe();
        }
 /// <summary>
 /// Create a new abstract monitoring service
 /// </summary>
 /// <param name="serviceProvider">The container where this service will be sited</param>
 /// <param name="taskManagerService">The task manager service for executing tasks</param>
 protected AbstractMonitoringService(SrcMLServicePackage serviceProvider, ITaskManagerService taskManagerService) {
     ServiceProvider = serviceProvider;
     SaveTimer = new ReentrantTimer(Save, GlobalScheduler);
     SaveInterval = DEFAULT_SAVE_INTERVAL;
     _isMonitoring = false;
     _isUpdating = false;
     if (taskManagerService != null)
     {
         this.TaskManager = taskManagerService;                
     }
 }
 /// <summary>
 /// Create a new abstract monitoring service
 /// </summary>
 /// <param name="serviceProvider">The container where this service will be sited</param>
 /// <param name="taskManagerService">The task manager service for executing tasks</param>
 protected AbstractMonitoringService(SrcMLServicePackage serviceProvider, ITaskManagerService taskManagerService)
 {
     ServiceProvider = serviceProvider;
     SaveTimer       = new ReentrantTimer(Save, GlobalScheduler);
     SaveInterval    = DEFAULT_SAVE_INTERVAL;
     _isMonitoring   = false;
     _isUpdating     = false;
     if (taskManagerService != null)
     {
         this.TaskManager = taskManagerService;
     }
 }
        /// <summary>
        /// Creates a new data service
        /// </summary>
        /// <param name="serviceProvider">The container where this service is sited</param>
        /// <param name="taskManagerService">The task manager</param>
        /// <param name="srcMLService">The srcML service</param>
        /// <param name="workingSetService">The working set factory service</param>
        public VsDataService(SrcMLServicePackage serviceProvider, ITaskManagerService taskManagerService, ISrcMLGlobalService srcMLService, IWorkingSetRegistrarService workingSetService)
            : base(serviceProvider, taskManagerService)
        {
            _srcMLService        = srcMLService;
            _workingSetFactories = workingSetService;

            if (_srcMLService.IsMonitoring)
            {
                _srcMLService_MonitoringStarted(this, new EventArgs());
            }
            Subscribe();
        }
Beispiel #5
0
 /// <summary>
 /// Creates a new monitoring service object
 /// </summary>
 /// <param name="serviceProvider">The container where this service is sited</param>
 /// <param name="taskManagerService">The task manager</param>
 public VsMonitoringService(SrcMLServicePackage serviceProvider, ITaskManagerService taskManagerService)
     : base(serviceProvider, taskManagerService)
 {
 }
 /// <summary>
 /// Creates a new monitoring service object
 /// </summary>
 /// <param name="serviceProvider">The container where this service is sited</param>
 /// <param name="taskManagerService">The task manager</param>
 public VsMonitoringService(SrcMLServicePackage serviceProvider, ITaskManagerService taskManagerService)
     : base(serviceProvider, taskManagerService) {
 }