Machine.UrlStrong.Translation.TemplateBuilderPostBuildStep.Install C# (CSharp) 메소드

Install() 공개 메소드

public Install ( System stateSaver ) : void
stateSaver System
리턴 void
    public override void Install(System.Collections.IDictionary stateSaver)
    {
      var engine = new SparkViewEngineFactory().CreateViewEngine();
      string assemblyPath = GetType().Assembly.Location;
      string targetPath = Path.ChangeExtension(assemblyPath, ".Templates.dll");

      var descriptors = new List<SparkViewDescriptor>();
      descriptors.Add(new SparkViewDescriptor().AddTemplate("master.spark"));
      engine.BatchCompilation(targetPath, descriptors);
    }