Beispiel #1
0
        public ContinuousJobRunner(string jobName, IEnvironment environment, IFileSystem fileSystem, IDeploymentSettingsManager settings, ITraceFactory traceFactory, IAnalytics analytics)
            : base(jobName, Constants.ContinuousPath, environment, fileSystem, settings, traceFactory, analytics)
        {
            _continuousJobLogger = new ContinuousJobLogger(jobName, Environment, FileSystem, TraceFactory);

            _disableFilePath = Path.Combine(JobBinariesPath, "disable.job");
            _singletonFilePath = Path.Combine(JobBinariesPath, "singleton.job");
        }
Beispiel #2
0
        public ContinuousJobRunner(string jobName, IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory traceFactory, IAnalytics analytics)
            : base(jobName, Constants.ContinuousPath, environment, settings, traceFactory, analytics)
        {
            _continuousJobLogger = new ContinuousJobLogger(jobName, Environment, TraceFactory);

            _disableFilePath = Path.Combine(JobBinariesPath, "disable.job");

            _singletonLock = new LockFile(Path.Combine(JobDataPath, "singleton.job.lock"), TraceFactory);
        }
Beispiel #3
0
        public ContinuousJobRunner(ContinuousJob continuousJob, IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory traceFactory, IAnalytics analytics)
            : base(continuousJob.Name, Constants.ContinuousPath, environment, settings, traceFactory, analytics)
        {
            _continuousJobLogger = new ContinuousJobLogger(continuousJob.Name, Environment, TraceFactory);

            _disableFilePath = Path.Combine(continuousJob.JobBinariesRootPath, "disable.job");

            _singletonLock = new LockFile(Path.Combine(JobDataPath, "singleton.job.lock"), TraceFactory);
        }
Beispiel #4
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_continuousJobLogger != null)
         {
             _continuousJobLogger.Dispose();
             _continuousJobLogger = null;
         }
     }
 }
Beispiel #5
0
        public ContinuousJobRunner(ContinuousJob continuousJob, IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory traceFactory, IAnalytics analytics)
            : base(continuousJob.Name, Constants.ContinuousPath, environment, settings, traceFactory, analytics)
        {
            _analytics           = analytics;
            _continuousJobLogger = new ContinuousJobLogger(continuousJob.Name, Environment, TraceFactory);
            _continuousJobLogger.RolledLogFile += OnLogFileRolled;

            _disableFilePath = Path.Combine(continuousJob.JobBinariesRootPath, "disable.job");

            _singletonLock = new LockFile(Path.Combine(JobDataPath, "singleton.job.lock"), TraceFactory);
        }
Beispiel #6
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_continuousJobThread != null)
                {
                    _continuousJobThread.KuduAbort(String.Format("Dispoing {0} {1} job", JobName, Constants.ContinuousPath));
                    _continuousJobThread = null;
                }

                if (_continuousJobLogger != null)
                {
                    _continuousJobLogger.Dispose();
                    _continuousJobLogger = null;
                }
            }
        }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_continuousJobLogger != null)
         {
             _continuousJobLogger.Dispose();
             _continuousJobLogger = null;
         }
     }
 }
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_continuousJobThread != null)
                {
                    _continuousJobThread.KuduAbort(String.Format("Dispoing {0} {1} job", JobName, Constants.ContinuousPath));
                    _continuousJobThread = null;
                }

                if (_continuousJobLogger != null)
                {
                    _continuousJobLogger.Dispose();
                    _continuousJobLogger = null;
                }
            }
        }