本文整理汇总了C#中Generator.Process方法的典型用法代码示例。如果您正苦于以下问题:C# Generator.Process方法的具体用法?C# Generator.Process怎么用?C# Generator.Process使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Generator
的用法示例。
在下文中一共展示了Generator.Process方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RunProject
public WhatToDoNext RunProject(string filename)
{
IProject project = new Project(filename);
Generator generator = new Generator(project);
Console.WriteLine("Processing `{0}'...", filename);
DateTime start = DateTime.Now;
try
{
generator.Process();
}
catch (Exception e)
{
Log.Fatal(e);
}
DateTime end = DateTime.Now;
Console.WriteLine("Generated framework for project `{0}'", project.Name);
Console.WriteLine(" in `{0}' seconds", (end - start).Seconds);
Console.WriteLine(" at `{0}'", project.OutputPath);
Console.WriteLine();
WriteStats(generator.Agregator);
Console.WriteLine();
return WhatToDoNext.GoAhead;
}
示例2: OldMain
private static void OldMain()
{
//PluginManagerTest();
IProject project = new Project("Projecto Sapus", "c:/Midgard/Sapus/", "Sapus Corp", "");
Dictionary<string, string> pluginParameter = new Dictionary<string, string>();
pluginParameter.Add("SourcePath", Path.Combine(Globals.DataDirectory, "Readme.txt"));
pluginParameter.Add("DestinyPath", "Readme.txt");
project.AddPluginParameter("Odin.CopyFile", pluginParameter);
Generator generator = new Generator(project);
generator.Process();
}
示例3: ProcessRecord
protected override void ProcessRecord()
{
System.IO.Directory.SetCurrentDirectory(this.SessionState.Path.CurrentLocation.Path);
var includes = (Includes ?? new[] {Source.Directory}).Select(d => d.FullName);
var fileFinder = new FileFinder(includes);
Generator generator = new Generator(fileFinder, Namespace);
string result = generator.Process(Source.FullName);
WriteObject(result);
}