Exemple #1
0
 public static PipelineTask FromHtml(string url, EntityModel model, CookieContainer cookieContainer = null, ICredentials credential = null)
 {
     return(PipelineTask.Create(new WebSourceNode(url, cookieContainer, credential)));
 }
Exemple #2
0
 public static PipelineTask FromSql(string query, ConnectInfo connectInfo, params SqlParameter[] parameters)
 {
     return(PipelineTask.Create(new SqlSourceNode(query, connectInfo, parameters)));
 }
Exemple #3
0
 public static PipelineTask FromJsonFile(string path, XMLEntityModel model)
 {
     return(PipelineTask.Create(new TextFileSourceNode(path))
            .ParseJson(Entity.DefaultColumn, model));
 }
Exemple #4
0
 public static PipelineTask FromJsonWeb(string url, XMLEntityModel model, CookieContainer container = null)
 {
     return(PipelineTask.Create(new WebSourceNode(url, container))
            .ParseJson(Entity.DefaultColumn, model));
 }
Exemple #5
0
 public static PipelineTask FromCsvFile(string path)
 {
     return(PipelineTask.Create(new SingleLineFileSourceNode(path))
            .ParseCsv(Entity.DefaultColumn));
 }
Exemple #6
0
 public static PipelineTask FromTextFile(string path, string separator = Entity.DefaultSeparator, string[] spiltColumns = null)
 {
     return(PipelineTask.Create(new SingleLineFileSourceNode(path))
            .Spilt(Entity.DefaultColumn, separator, spiltColumns));
 }
Exemple #7
0
 public static PipelineTask FromFile(string path)
 {
     return(PipelineTask.Create(new FileSourceNode(path)));
 }