Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzforever committed Apr 21, 2016
1 parent 8021c70 commit e835215
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/Java2Dotnet.Spider.Common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"System.Dynamic.Runtime":"4.0.11-rc3-23829",
"System.Net.NameResolution":"4.0.0-rc3-23829" ,
"Microsoft.CSharp": "4.0.1-rc3-23829",
"System.Collections.NonGeneric":"4.0.1-rc3-23829"
"System.Collections.NonGeneric":"4.0.1-rc3-23829" ,
"System.Net.Http": "4.0.1-rc3-23829"
},
"frameworks": {
"dnxcore50": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ private Downloader GetDownloader(JObject jobject)
}
}
downloader = webDriverDownloader;
#else
throw new SpiderExceptoin("UNSPORT WEBDRIVER DOWNLOADER.");
#endif
break;
#else
throw new SpiderExceptoin("UNSPORT WEBDRIVER DOWNLOADER.");
#endif
}
case Configuration.Downloader.Types.HttpClientDownloader:
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ public override void Build(Site site)
}
datas.Add(values);
}

#if !NET_CORE
reader.Close();

#else
reader.Dispose();
#endif
Parallel.ForEach(datas, new ParallelOptions { MaxDegreeOfParallelism = 1 }, brand =>
{
Dictionary<string, object> tmp = brand;
Expand Down
3 changes: 2 additions & 1 deletion src/Java2Dotnet.Spider.Extension/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"Newtonsoft.Json": "7.0.1",
"System.Dynamic.Runtime":"4.0.11-rc3-23829",
"System.Runtime.Serialization.Primitives": "4.1.1-rc3-23902",
"System.Xml.XDocument": "4.0.11-rc3-23829"
"System.Xml.XDocument": "4.0.11-rc3-23829",
"System.Data.SqlClient":"4.0.10-rc3-23829"
},

"frameworks": {
Expand Down

0 comments on commit e835215

Please sign in to comment.