Esempio n. 1
0
 public void SetProgress(ExecutionProgress progress)
 {
     _progress = progress;
 }
Esempio n. 2
0
        private IExecutionContext CreateContext(string cookie)
        {
            IExecutionContext context = new Gin.Context.ExecutionContext(_ginRoot);
            Logging.Logging loggingObject = new Logging.Logging();

            Directory.CreateDirectory(_cookiePath);

            string mainLoggerPath = Path.Combine(_ginRoot, Gin.ExecutionLogger.EXECUTION_LOG_FILENAME);
            ExecutionLogger mainFileLogger = new ExecutionLoggerTextFile(mainLoggerPath);
            loggingObject.AddLogger(mainFileLogger);

            string textLoggerPath = Path.Combine(_cookiePath, Gin.ExecutionLogger.EXECUTION_LOG_FILENAME);
            ExecutionLogger textFileLogger = new ExecutionLoggerTextFile(textLoggerPath);
            loggingObject.AddLogger(textFileLogger);
            _state.LogPath = textLoggerPath;

            _progressProxy = new ExecutionProgressProxy(OnProgress);
            loggingObject.SetProgress(_progressProxy);

            context.Log = loggingObject;

            return context;
        }
Esempio n. 3
0
 public void SetProgress(ExecutionProgress progress)
 {
     _progress = progress;
 }
Esempio n. 4
0
 public void SetExecutionProgress(ExecutionProgress progress)
 {
 }