public ApplicationService( IOptions <RequestLocalizationOptions> locOptions, IStringLocalizer <ApplicationService> stringLocalizer, IHttpContextAccessor contextAccessor, IMemoryCache memoryCache, IDeploymentEnvironment deploymentEnvironment) { _locOptions = locOptions.Value; _stringLocalizer = stringLocalizer; _contextAccessor = contextAccessor; _cache = memoryCache; _deploymentEnvironment = deploymentEnvironment; }
public GitExeServer(string path, IOperationLock initLock, IDeploymentEnvironment deploymentEnvironment, ITraceFactory traceFactory) { _gitExe = new GitExecutable(path); _traceFactory = traceFactory; _repository = new GitExeRepository(path, traceFactory); _initLock = initLock; // Setup the deployment environment variable to be used by the post receive hook _gitExe.EnvironmentVariables[KnownEnviornment.EXEPATH] = deploymentEnvironment.ExePath; _gitExe.EnvironmentVariables[KnownEnviornment.APPPATH] = deploymentEnvironment.ApplicationPath; _gitExe.EnvironmentVariables[KnownEnviornment.MSBUILD] = deploymentEnvironment.MSBuildExtensionsPath; _gitExe.EnvironmentVariables[KnownEnviornment.DEPLOYER] = ""; }
public GitExeServer(string path, string homePath, IOperationLock initLock, string logFileEnv, IDeploymentEnvironment deploymentEnvironment, ITraceFactory traceFactory) { _gitExe = new GitExecutable(path); _gitExe.SetHomePath(homePath); _traceFactory = traceFactory; _repository = new GitExeRepository(path, homePath, traceFactory); _initLock = initLock; // Transfer logFileEnv => git.exe => kudu.exe, this represent per-request tracefile _gitExe.EnvironmentVariables[Constants.TraceFileEnvKey] = logFileEnv; // Setup the deployment environment variable to be used by the post receive hook _gitExe.EnvironmentVariables[KnownEnvironment.EXEPATH] = deploymentEnvironment.ExePath; _gitExe.EnvironmentVariables[KnownEnvironment.APPPATH] = deploymentEnvironment.ApplicationPath; _gitExe.EnvironmentVariables[KnownEnvironment.MSBUILD] = deploymentEnvironment.MSBuildExtensionsPath; _gitExe.EnvironmentVariables[KnownEnvironment.DEPLOYER] = ""; }
public GitExeServer(IEnvironment environment, IOperationLock initLock, string logFileEnv, IRepositoryFactory repositoryFactory, IDeploymentEnvironment deploymentEnvironment, IDeploymentSettingsManager settings, ITraceFactory traceFactory) { _gitExe = new GitExecutable(environment.RepositoryPath, settings.GetCommandIdleTimeout()); _gitExe.SetHomePath(environment.SiteRootPath); _traceFactory = traceFactory; _initLock = initLock; _repositoryFactory = repositoryFactory; // Transfer logFileEnv => git.exe => kudu.exe, this represent per-request tracefile _gitExe.EnvironmentVariables[Constants.TraceFileEnvKey] = logFileEnv; // Setup the deployment environment variable to be used by the post receive hook _gitExe.EnvironmentVariables[KnownEnvironment.EXEPATH] = deploymentEnvironment.ExePath; _gitExe.EnvironmentVariables[KnownEnvironment.APPPATH] = deploymentEnvironment.ApplicationPath; _gitExe.EnvironmentVariables[KnownEnvironment.MSBUILD] = deploymentEnvironment.MSBuildExtensionsPath; _gitExe.EnvironmentVariables[KnownEnvironment.DEPLOYER] = ""; }
public GitExeServer(IEnvironment environment, IOperationLock initLock, string logFileEnv, IRepositoryFactory repositoryFactory, IDeploymentEnvironment deploymentEnvironment, IDeploymentSettingsManager settings, ITraceFactory traceFactory) { _gitExe = new GitExecutable(environment.RepositoryPath, settings.GetCommandIdleTimeout()); _gitExe.SetHomePath(environment); _traceFactory = traceFactory; _initLock = initLock; _repositoryFactory = repositoryFactory; // Transfer logFileEnv => git.exe => kudu.exe, this represent per-request tracefile _gitExe.EnvironmentVariables[Constants.TraceFileEnvKey] = logFileEnv; // Setup the deployment environment variable to be used by the post receive hook _gitExe.EnvironmentVariables[KnownEnvironment.EXEPATH] = deploymentEnvironment.ExePath; _gitExe.EnvironmentVariables[KnownEnvironment.APPPATH] = deploymentEnvironment.ApplicationPath; _gitExe.EnvironmentVariables[KnownEnvironment.MSBUILD] = deploymentEnvironment.MSBuildExtensionsPath; _gitExe.EnvironmentVariables[KnownEnvironment.DEPLOYER] = ""; }
public GitExeServer(string path, string homePath, IOperationLock initLock, string logFileEnv, IDeploymentEnvironment deploymentEnvironment, IDeploymentSettingsManager settings, ITraceFactory traceFactory) { // Honor settings if longer var gitTimeout = settings.GetCommandIdleTimeout(); if (gitTimeout < _gitMinTimeout) { gitTimeout = _gitMinTimeout; } _gitExe = new GitExecutable(path, gitTimeout); _gitExe.SetHomePath(homePath); _traceFactory = traceFactory; _repository = new GitExeRepository(path, homePath, settings, traceFactory); _initLock = initLock; // Transfer logFileEnv => git.exe => kudu.exe, this represent per-request tracefile _gitExe.EnvironmentVariables[Constants.TraceFileEnvKey] = logFileEnv; // Setup the deployment environment variable to be used by the post receive hook _gitExe.EnvironmentVariables[KnownEnvironment.EXEPATH] = deploymentEnvironment.ExePath; _gitExe.EnvironmentVariables[KnownEnvironment.APPPATH] = deploymentEnvironment.ApplicationPath; _gitExe.EnvironmentVariables[KnownEnvironment.MSBUILD] = deploymentEnvironment.MSBuildExtensionsPath; _gitExe.EnvironmentVariables[KnownEnvironment.DEPLOYER] = ""; }
public ApplicationInsightsServiceOptionsSetup(IDeploymentEnvironment deploymentEnvironment) { _deploymentEnvironment = deploymentEnvironment; }
public GitExeServer(string path, string homePath, IOperationLock initLock, string logFileEnv, IDeploymentEnvironment deploymentEnvironment, ITraceFactory traceFactory) { _gitExe = new GitExecutable(path); _gitExe.SetHomePath(homePath); _traceFactory = traceFactory; _repository = new GitExeRepository(path, homePath, traceFactory); _initLock = initLock; // Transfer logFileEnv => git.exe => kudu.exe, this represent per-request tracefile _gitExe.EnvironmentVariables[Constants.TraceFileEnvKey] = logFileEnv; // Setup the deployment environment variable to be used by the post receive hook _gitExe.EnvironmentVariables[KnownEnviornment.EXEPATH] = deploymentEnvironment.ExePath; _gitExe.EnvironmentVariables[KnownEnviornment.APPPATH] = deploymentEnvironment.ApplicationPath; _gitExe.EnvironmentVariables[KnownEnviornment.MSBUILD] = deploymentEnvironment.MSBuildExtensionsPath; _gitExe.EnvironmentVariables[KnownEnviornment.DEPLOYER] = ""; }