本文整理汇总了C#中ripple.Model.Solution.UseCache方法的典型用法代码示例。如果您正苦于以下问题:C# Solution.UseCache方法的具体用法?C# Solution.UseCache怎么用?C# Solution.UseCache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ripple.Model.Solution
的用法示例。
在下文中一共展示了Solution.UseCache方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetUp
public void SetUp()
{
theCacheFeed = new Feed("file://cache");
theFileSystemFeed = new Feed("file://feed");
FeedScenario.Create(scenario =>
{
scenario.For(theCacheFeed)
.Add("Dependency1", "1.0.0.0");
scenario.For(theFileSystemFeed)
.Add("Dependency1", "1.1.0.0");
scenario.For(Feed.NuGetV2)
.Add("Dependency1", "1.0.23.0");
});
theScenario = SolutionGraphScenario.Create(scenario =>
{
scenario.Solution("Test", test =>
{
test.SolutionDependency("Dependency1", "1.1.0.0", UpdateMode.Float);
});
});
theSolution = theScenario.Find("Test");
theSolution.ClearFeeds();
theSolution.AddFeed(theFileSystemFeed);
theSolution.AddFeed(Feed.NuGetV2);
theSolution.UseCache(new InMemoryNugetCache(theCacheFeed));
}
示例2: SetUp
public void SetUp()
{
theScenario = SolutionScenario.Create(scenario =>
{
scenario.Solution("Test", test =>
{
// Defacto a float
test.ProjectDependency("Test", "Spark");
});
});
theCache = new Feed("cache");
theSolution = theScenario.Find("Test");
theSolution.UseCache(new InMemoryNugetCache(theCache));
FeedScenario.Create(scenario =>
{
scenario.For(theCache)
.Add("Spark", "1.0.0.0");
scenario.For(Feed.NuGetV2)
.Add("Spark", "1.1.0.1");
});
RippleOperation
.With(theSolution)
.Execute<RestoreInput, RestoreCommand>();
}
示例3: SetUp
public void SetUp()
{
theScenario = SolutionGraphScenario.Create(scenario =>
{
scenario.Solution("Test", test =>
{
test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Float);
test.ProjectDependency("Test", "TestNuGet");
});
});
theCache = new Feed("cache");
theSolution = theScenario.Find("Test");
theSolution.UseCache(new InMemoryNugetCache(theCache));
FeedScenario.Create(scenario =>
{
scenario.For(theCache)
.Add("TestNuGet", "1.1.0.1");
});
RippleOperation
.With(theSolution)
.Execute<RestoreInput, RestoreCommand>();
}
示例4: Apply
public void Apply(Solution solution)
{
RippleLog.Verbose(VerboseFlag);
if (CacheFlag.IsNotEmpty())
{
solution.UseCache(new NugetFolderCache(solution, CacheFlag.ToFullPath()));
}
ApplyTo(solution);
}
示例5: SetUp
public void SetUp()
{
theFinder = new CacheFinder();
theCache = new Feed("cache");
FeedScenario.Create(scenario =>
{
scenario.For(theCache)
.Add("Test", "1.1.0.0");
});
theSolution = Solution.Empty();
theSolution.UseCache(new InMemoryNugetCache(theCache));
}
示例6: SetUp
public void SetUp()
{
theSolution = Solution.Empty();
theCacheFeed = new Feed("cache");
theFeed = new Feed("test");
theSolution.AddFeed(theFeed);
theSolution.UseCache(new InMemoryNugetCache(theCacheFeed));
FeedScenario.Create(scenario =>
{
scenario.For(theFeed);
scenario.For(theCacheFeed);
});
theConnectivity = new FeedConnectivity();
}