本文整理汇总了C#中IDeploymentSettingsManager类的典型用法代码示例。如果您正苦于以下问题:C# IDeploymentSettingsManager类的具体用法?C# IDeploymentSettingsManager怎么用?C# IDeploymentSettingsManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IDeploymentSettingsManager类属于命名空间,在下文中一共展示了IDeploymentSettingsManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: LibGit2SharpRepository
public LibGit2SharpRepository(IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory tracerFactory)
{
_tracerFactory = tracerFactory;
_settings = settings;
RepositoryPath = environment.RepositoryPath;
_legacyGitExeRepository = new GitExeRepository(environment, settings, tracerFactory);
}
示例3: BasicBuilder
public BasicBuilder(string sourcePath, string scriptPath, string homePath, IDeploymentSettingsManager settings)
{
_sourcePath = sourcePath;
_scriptPath = scriptPath;
_homePath = homePath;
_settings = settings;
}
示例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;
}
示例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);
}
示例6: RepositoryFactory
public RepositoryFactory(IEnvironment environment, IDeploymentSettingsManager settings, ITraceFactory traceFactory, HttpContextBase httpContext)
{
_environment = environment;
_settings = settings;
_traceFactory = traceFactory;
_httpContext = httpContext;
}
示例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);
}
}
}
示例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);
}
示例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>());
}
示例10: ExternalCommandFactory
public ExternalCommandFactory(IEnvironment environment, IDeploymentSettingsManager settings, string repositoryPath)
{
_environment = environment;
_deploymentSettings = settings;
_repositoryPath = repositoryPath;
}
示例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);
}
示例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);
}
示例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);
}
示例14: NodeSiteEnabler
public NodeSiteEnabler(IFileSystem fileSystem, string repoFolder, string siteFolder, string scriptPath, IDeploymentSettingsManager settings)
{
_fileSystem = fileSystem;
_repoFolder = repoFolder;
_siteFolder = siteFolder;
_scriptPath = scriptPath;
_settings = settings;
}
示例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());
}