本文整理汇总了C#中IDeploymentSettingsManager.GetCommandIdleTimeout方法的典型用法代码示例。如果您正苦于以下问题:C# IDeploymentSettingsManager.GetCommandIdleTimeout方法的具体用法?C# IDeploymentSettingsManager.GetCommandIdleTimeout怎么用?C# IDeploymentSettingsManager.GetCommandIdleTimeout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDeploymentSettingsManager
的用法示例。
在下文中一共展示了IDeploymentSettingsManager.GetCommandIdleTimeout方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Chmod
public static void Chmod(string permission, string filePath, IEnvironment environment, IDeploymentSettingsManager deploymentSettingManager, ILogger logger)
{
var folder = Path.GetDirectoryName(filePath);
var exeFactory = new ExternalCommandFactory(environment, deploymentSettingManager, null);
Executable exe = exeFactory.BuildCommandExecutable("/bin/chmod", folder, deploymentSettingManager.GetCommandIdleTimeout(), logger);
exe.Execute("{0} {1}", permission, filePath);
}
示例2: MsBuildSiteBuilder
protected MsBuildSiteBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string workingDirectory)
{
_settings = settings;
_propertyProvider = propertyProvider;
_msbuildExe = new Executable(PathUtility.ResolveMSBuildPath(), workingDirectory, settings.GetCommandIdleTimeout());
// NuGet.exe 1.8 will require an environment variable to make package restore work
_msbuildExe.EnvironmentVariables[WellKnownEnvironmentVariables.NuGetPackageRestoreKey] = "true";
}
示例3: GitExeRepository
public GitExeRepository(string path, string homePath, IDeploymentSettingsManager settings, ITraceFactory profilerFactory)
{
_gitExe = new GitExecutable(path, settings.GetCommandIdleTimeout());
_tracerFactory = profilerFactory;
_settings = settings;
if (!String.IsNullOrEmpty(homePath))
{
_gitExe.SetHomePath(homePath);
}
}
示例4: DropboxHelper
public DropboxHelper(ITracer tracer,
IDeploymentStatusManager status,
IDeploymentSettingsManager settings,
IEnvironment environment)
{
_tracer = tracer;
_status = status;
_settings = settings;
_environment = environment;
_timeout = settings.GetCommandIdleTimeout();
}
示例5: DropboxHelper
public DropboxHelper(ITracer tracer,
IServerRepository repository,
IDeploymentSettingsManager settings,
IEnvironment environment)
{
_tracer = tracer;
_repository = repository;
_settings = settings;
_environment = environment;
_timeout = settings.GetCommandIdleTimeout();
}
示例6: GitExeServer
public GitExeServer(string path, string homePath, IOperationLock initLock, string logFileEnv, IDeploymentEnvironment deploymentEnvironment, IDeploymentSettingsManager settings, ITraceFactory traceFactory)
{
_gitExe = new GitExecutable(path, settings.GetCommandIdleTimeout());
_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] = "";
}
示例7: HgRepository
public HgRepository(string path, string homePath, IDeploymentSettingsManager settings, ITraceFactory traceFactory)
: this(GetHgExecutable(path, settings.GetCommandIdleTimeout()), homePath, traceFactory)
{
}
示例8: HgRepository
public HgRepository(string path, string homePath, IDeploymentSettingsManager settings, ITraceFactory traceFactory)
{
_hgExecutable = new Executable(Client.ClientPath, path, settings.GetCommandIdleTimeout());
_homePath = homePath;
_traceFactory = traceFactory;
}