예제 #1
0
        public ListedRunnerPlugin(ICurrentEnvironment env, ILoggerFactory loggerFactory)
        {
            if (Instance != null)
            {
                throw new Exception($"cannot create another instance of {nameof(ListedRunnerPlugin)}");
            }

            UpdateConfigurations(env);
            loggerFactory.CreateLogger("Runner");
            Instance = this;
        }
예제 #2
0
        public ListedRunnerPlugin(ICurrentEnvironment env, ILoggerFactory loggerFactory)
        {
            if (Instance != null)
            {
                throw new Exception($"cannot create another instance of {nameof(ListedRunnerPlugin)}");
            }

            actions      = new List <RunCommandAction>();
            logger       = loggerFactory.CreateLogger("Runner");
            updateAction = new UpdateRunnerAction();
            Instance     = this;
            UpdateConfigurations(env);
        }