public HtmlOutputGenerator AddResourceScript(ControllerNameExtractor Extractor)
 {
     IEnumerable<ResourceName> ResourceNames = Extractor.Extract(this.OutputAssembly);
     string value = JsonConvert.SerializeObject(ResourceNames);
     Dom.Select("#Resource").Text(value);
     return this;
 }
Exemplo n.º 2
0
        public HtmlOutputGenerator AddResourceScript(ControllerNameExtractor Extractor)
        {
            IEnumerable <ResourceName> ResourceNames = Extractor.Extract(this.OutputAssembly);
            string value = JsonConvert.SerializeObject(ResourceNames);

            Dom.Select("#Resource").Text(value);
            return(this);
        }
Exemplo n.º 3
0
 public void GetSpecifications()
 {
     var targetAssembly = Assembly.GetExecutingAssembly();
     targetLocation = targetAssembly.Location;
     ControllerNameExtractor extractor = new ControllerNameExtractor();
     nspecCollection = (from type in targetAssembly.GetTypes()
                        where typeof(nspec).IsAssignableFrom(type)
                        select type.Name);
 }