本文整理汇总了C#中IDeploymentSettingsManager类的典型用法代码示例。如果您正苦于以下问题:C# IDeploymentSettingsManager类的具体用法?C# IDeploymentSettingsManager怎么用?C# IDeploymentSettingsManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IDeploymentSettingsManager类属于命名空间,在下文中一共展示了IDeploymentSettingsManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: AspNet5Builder
public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, bool isConsoleApp)
: base(environment, settings, propertyProvider, sourcePath)
{
_projectPath = projectPath;
_sourcePath = sourcePath;
_isConsoleApp = isConsoleApp;
}
开发者ID:kali786516,项目名称:kudu,代码行数:7,代码来源:AspNet5Builder.cs
示例2: LibGit2SharpRepository
public LibGit2SharpRepository(IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory tracerFactory)
{
_tracerFactory = tracerFactory;
_settings = settings;
RepositoryPath = environment.RepositoryPath;
_legacyGitExeRepository = new GitExeRepository(environment, settings, tracerFactory);
}
开发者ID:sr457,项目名称:kudu,代码行数:7,代码来源:LibGit2SharpRepository.cs
示例3: BasicBuilder
public BasicBuilder(string sourcePath, string scriptPath, string homePath, IDeploymentSettingsManager settings)
{
_sourcePath = sourcePath;
_scriptPath = scriptPath;
_homePath = homePath;
_settings = settings;
}
开发者ID:lookworld,项目名称:kudu,代码行数:7,代码来源:BasicBuilder.cs
示例4: WapBuilder
public WapBuilder(IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath, string tempPath, string solutionPath)
: base(settings, propertyProvider, sourcePath, tempPath)
{
_projectPath = projectPath;
_tempPath = tempPath;
_solutionPath = solutionPath;
}
开发者ID:dpvreony-forks,项目名称:kudu,代码行数:7,代码来源:WapBuilder.cs
示例5: SiteBuilderFactoryDispatcher
public SiteBuilderFactoryDispatcher(IDeploymentSettingsManager settingsManager, IBuildPropertyProvider propertyProvider, IEnvironment environment)
{
_settingsManager = settingsManager;
_originalSiteBuilderFactory = new SiteBuilderFactory(settingsManager, propertyProvider, environment);
_generatorSiteBuilderFactory = new Generator.SiteBuilderFactory(settingsManager, propertyProvider, environment);
}
开发者ID:dpvreony-forks,项目名称:kudu,代码行数:7,代码来源:SiteBuilderFactoryDispatcher.cs
示例6: RepositoryFactory
public RepositoryFactory(IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory traceFactory, HttpContextBase httpContext)
{
_environment = environment;
_settings = settings;
_traceFactory = traceFactory;
_httpContext = httpContext;
}
开发者ID:sr457,项目名称:kudu,代码行数:7,代码来源:RepositoryFactory.cs
示例7: OldRunsCleanup
private static void OldRunsCleanup(string jobName, IFileSystem fileSystem, IEnvironment environment, ITraceFactory traceFactory, IDeploymentSettingsManager settings)
{
// if max is 5 and we have 5 we still want to remove one to make room for the next
// that's why we decrement max value by 1
int maxRuns = settings.GetMaxJobRunsHistoryCount() - 1;
string historyPath = Path.Combine(environment.JobsDataPath, Constants.TriggeredPath, jobName);
DirectoryInfoBase historyDirectory = fileSystem.DirectoryInfo.FromDirectoryName(historyPath);
if (!historyDirectory.Exists)
{
return;
}
DirectoryInfoBase[] historyRunsDirectories = historyDirectory.GetDirectories();
if (historyRunsDirectories.Length <= maxRuns)
{
return;
}
var directoriesToRemove = historyRunsDirectories.OrderByDescending(d => d.Name).Skip(maxRuns);
foreach (DirectoryInfoBase directory in directoriesToRemove)
{
try
{
directory.Delete(true);
}
catch (Exception ex)
{
traceFactory.GetTracer().TraceError(ex);
}
}
}
开发者ID:hackmp,项目名称:kudu,代码行数:32,代码来源:TriggeredJobRunLogger.cs
示例8: 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
示例9: CreateController
private InfoRefsController CreateController(IGitServer gitServer = null,
IDeploymentManager deploymentManager = null,
IDeploymentSettingsManager settings = null,
IRepositoryFactory repositoryFactory = null)
{
return new InfoRefsController(Mock.Of<ITracer>(), gitServer ?? Mock.Of<IGitServer>(), repositoryFactory ?? Mock.Of<IRepositoryFactory>());
}
开发者ID:GregPerez83,项目名称:kudu,代码行数:7,代码来源:InfoRefsControllerFacts.cs
示例10: ExternalCommandFactory
public ExternalCommandFactory(IEnvironment environment, IDeploymentSettingsManager settings, string repositoryPath)
{
_environment = environment;
_deploymentSettings = settings;
_repositoryPath = repositoryPath;
}
开发者ID:BrianVallelunga,项目名称:kudu,代码行数:7,代码来源:ExternalCommandFactory.cs
示例11: AutoSwapHandler
public AutoSwapHandler(IDeploymentStatusManager deploymentStatusManager, IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory traceFactory)
{
_deploymentStatusManager = deploymentStatusManager;
_traceFactory = traceFactory;
_autoSwapSlotName = settings.GetValue("WEBSITE_SWAP_SLOTNAME");
_autoSwapLockFilePath = Path.Combine(environment.LocksPath, AutoSwapLockFile);
}
开发者ID:Walk4Muscle,项目名称:kudu,代码行数:7,代码来源:AutoSwapHandler.cs
示例12: AspNet5Builder
public AspNet5Builder(IEnvironment environment, IDeploymentSettingsManager settings, IBuildPropertyProvider propertyProvider, string sourcePath, string projectPath)
: base(environment, settings, propertyProvider, sourcePath)
{
_projectPath = projectPath;
var properties = propertyProvider.GetProperties();
properties[WellKnownEnvironmentVariables.DnxVersion] = AspNet5Helper.GetAspNet5RuntimeVersion(sourcePath);
}
开发者ID:lebowitz,项目名称:kudu,代码行数:7,代码来源:AspNet5Builder.cs
示例13: SiteExtensionManager
public SiteExtensionManager(IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory traceFactory)
{
_localRepository = new LocalPackageRepository(environment.RootPath + "\\SiteExtensions");
_traceFactory = traceFactory;
var remoteSource = new Uri(settings.GetSiteExtensionRemoteUrl());
_remoteRepository = new DataServicePackageRepository(remoteSource);
}
开发者ID:jeddawson,项目名称:kudu,代码行数:8,代码来源:SiteExtensionManager.cs
示例14: NodeSiteEnabler
public NodeSiteEnabler(IFileSystem fileSystem, string repoFolder, string siteFolder, string scriptPath, IDeploymentSettingsManager settings)
{
_fileSystem = fileSystem;
_repoFolder = repoFolder;
_siteFolder = siteFolder;
_scriptPath = scriptPath;
_settings = settings;
}
开发者ID:richardprice,项目名称:kudu,代码行数:8,代码来源:NodeSiteEnabler.cs
示例15: BuildPerDeploymentSettingsManager
public static IDeploymentSettingsManager BuildPerDeploymentSettingsManager(string path, IDeploymentSettingsManager deploymentSettingsManager)
{
var combinedSettingsProviders = new List<ISettingsProvider>(deploymentSettingsManager.SettingsProviders);
combinedSettingsProviders.Add(new DeploymentSettingsProvider(path));
PerSiteSettingsProvider perSiteSettings = null;
return new DeploymentSettingsManager(perSiteSettings, combinedSettingsProviders.ToArray());
}
开发者ID:40a,项目名称:kudu,代码行数:8,代码来源:DeploymentSettingsManager.cs
示例16: UploadPackHandler
public UploadPackHandler(ITracer tracer,
IGitServer gitServer,
IOperationLock deploymentLock,
IDeploymentManager deploymentManager,
IDeploymentSettingsManager settings)
: base(tracer, gitServer, deploymentLock, deploymentManager, settings)
{
}
开发者ID:BrianVallelunga,项目名称:kudu,代码行数:8,代码来源:UploadPackHandler.cs
示例17: DropboxHandler
public DropboxHandler(ITracer tracer,
IServerRepository repository,
IDeploymentSettingsManager settings,
IEnvironment environment)
{
_tracer = tracer;
_helper = new DropboxHelper(tracer, repository, settings, environment);
}
开发者ID:dpvreony-forks,项目名称:kudu,代码行数:8,代码来源:DropboxHandler.cs
示例18: CommandExecutor
public CommandExecutor(string repositoryPath, IEnvironment environment, IDeploymentSettingsManager settings, ITracer tracer)
{
_rootDirectory = repositoryPath;
_environment = environment;
_externalCommandFactory = new ExternalCommandFactory(environment, settings, repositoryPath);
_settings = settings;
_tracer = tracer;
}
开发者ID:sr457,项目名称:kudu,代码行数:8,代码来源:CommandExecutor.cs
示例19: AddDeploymentSettingsAsEnvironmentVariables
public static void AddDeploymentSettingsAsEnvironmentVariables(this Executable exe, IDeploymentSettingsManager deploymentSettingsManager)
{
IEnumerable<KeyValuePair<string, string>> deploymentSettings = deploymentSettingsManager.GetValues();
foreach (var keyValuePair in deploymentSettings)
{
exe.EnvironmentVariables[keyValuePair.Key] = keyValuePair.Value;
}
}
开发者ID:lookworld,项目名称:kudu,代码行数:8,代码来源:ExecutableExtensions.cs
示例20: ContinuousJobRunner
public ContinuousJobRunner(string jobName, IEnvironment environment, IFileSystem fileSystem, IDeploymentSettingsManager settings, ITraceFactory traceFactory, IAnalytics analytics)
: base(jobName, Constants.ContinuousPath, environment, fileSystem, settings, traceFactory, analytics)
{
_continuousJobLogger = new ContinuousJobLogger(jobName, Environment, FileSystem, TraceFactory);
_disableFilePath = Path.Combine(JobBinariesPath, "disable.job");
_singletonFilePath = Path.Combine(JobBinariesPath, "singleton.job");
}
开发者ID:pqthompson,项目名称:kudu,代码行数:8,代码来源:ContinuousJobRunner.cs
注:本文中的IDeploymentSettingsManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论