Beispiel #1
0
 public void Process(IDoxBuilder builder)
 {
     foreach (Codaxy.Dox.DoxDocument doc in SqlSchemaReader.ReadSchema(connectionString,databaseName, Logger))
     {
         doc.GenerateTypeSearchItems();
         builder.Add(doc);
     }
 }
Beispiel #2
0
 public void Process(IDoxBuilder builder)
 {
     var js = new JsonSerializer();
     using (ZipFile zf = new ZipFile(stream))
         foreach (ZipEntry ze in zf)
         {
             using (var istream = zf.GetInputStream(ze))
             using (var streamReader = new StreamReader(istream))
             {
                 //uncomment for debugging
                 //var text = streamReader.ReadToEnd();
                 //using (var stringReader = new StringReader(text))
                 //using (var jtr = new JsonTextReader(stringReader))
                 using (var jtr = new JsonTextReader(streamReader))
                 {
                     var dox = js.Deserialize<DoxDocument>(jtr);
                     builder.Add(dox);
                 }
             }
         }
 }
Beispiel #3
0
 public void Process(IDoxBuilder builder)
 {
     foreach (var dox in data.Values)
         builder.Add(dox);
 }
Beispiel #4
0
 public void Process(IDoxBuilder builder)
 {
     foreach(Codaxy.Dox.DoxDocument doc in Parser.GetDocumentList(path)){
         builder.Add(doc);
     }
 }