当前位置: 首页>>代码示例>>C#>>正文


C# IDeploymentSettingsManager.GetCommandIdleTimeout方法代码示例

本文整理汇总了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);
 }
开发者ID:shibayan,项目名称:kudu,代码行数:7,代码来源:PermissionHelper.cs

示例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";
        }
开发者ID:richardprice,项目名称:kudu,代码行数:9,代码来源:MsBuildSiteBuilder.cs

示例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);
            }
        }
开发者ID:GregPerez83,项目名称:kudu,代码行数:11,代码来源:GitExeRepository.cs

示例4: DropboxHelper

 public DropboxHelper(ITracer tracer,
                      IDeploymentStatusManager status,
                      IDeploymentSettingsManager settings,
                      IEnvironment environment)
 {
     _tracer = tracer;
     _status = status;
     _settings = settings;
     _environment = environment;
     _timeout = settings.GetCommandIdleTimeout();
 }
开发者ID:bogdansa,项目名称:kudu,代码行数:11,代码来源:DropboxHelper.cs

示例5: DropboxHelper

 public DropboxHelper(ITracer tracer,
                      IServerRepository repository,
                      IDeploymentSettingsManager settings,
                      IEnvironment environment)
 {
     _tracer = tracer;
     _repository = repository;
     _settings = settings;
     _environment = environment;
     _timeout = settings.GetCommandIdleTimeout();
 }
开发者ID:lookworld,项目名称:kudu,代码行数:11,代码来源:DropboxHelper.cs

示例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] = "";
        }
开发者ID:lookworld,项目名称:kudu,代码行数:17,代码来源:GitExeServer.cs

示例7: HgRepository

 public HgRepository(string path, string homePath, IDeploymentSettingsManager settings, ITraceFactory traceFactory)
     : this(GetHgExecutable(path, settings.GetCommandIdleTimeout()), homePath, traceFactory)
 {
 }
开发者ID:JayQuerido,项目名称:kudu,代码行数:4,代码来源:HgRepository.cs

示例8: HgRepository

 public HgRepository(string path, string homePath, IDeploymentSettingsManager settings, ITraceFactory traceFactory)
 {
     _hgExecutable = new Executable(Client.ClientPath, path, settings.GetCommandIdleTimeout());
     _homePath = homePath;
     _traceFactory = traceFactory;
 }
开发者ID:GregPerez83,项目名称:kudu,代码行数:6,代码来源:HgRepository.cs


注:本文中的IDeploymentSettingsManager.GetCommandIdleTimeout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。