Nx
Metadata
Authors | tiny(tiny@sandsea.info) |
---|---|
Copyrights | Mr. Tiny (tiny@sandsea.info) 2014 |
Description | A .Net Library For Rapid Development. |
IconUrl | https://icon_url_here_or_delete_this_line/ |
LicenseUrl | http://www.apache.org/licenses/LICENSE-2.0.html |
Owners | Tiny |
ProjectUrl | https://www.sandsea.info/svn/nxframework |
ReleaseNotes | Usage Scene 0x01:Simulation of the HTTP request var reqCtx = RequestBuilder.Create("default") .SetUrl("http://sample.com/api/sendmsg") .SetUserAgent("Nx Framework.") .SetReferer("http://sample.com/api/login") .SetProxy(new WebProxy("127.0.0.1:8888")) .AllowAutoRedirect(true) .SetHttpMethod("POST") .WithFormData("user=tiny") .SetTimeout(3000) .Build(); var respCtx = RequestManager.GetResponse(reqCtx); //check error if(respCtx.Exception==null) { //if html, we have a nice intergration from Ivony's code(http://www.nuget.org/packages/Jumony.Core/) var document = respCtx.ResponseDocument;//return IHtmlDocument object. //filter elements like JQuery using the extensions ,need using Ivony.Html first. var theElements = document.AllElements()... //may extention methods //we can also get text directly var text = respCtx.Text; //or the stream, and other usable properties of IResponseContext var ms = respCtx.Stream; } Usage Scene 0x02:Read Text Based File EASY And FAST. var file = new Nx.IO.TextFileInfo("d:\\d.txt"); //random row while(true) { Console.WriteLine(file.RandomRow); } //row items foreach(var item in file.RowItems) { //usable properties //item.RowIndex //item.Text //item.IsEmptyLine //item.DataLength } Usage Scene 0x03:ThreadSafeRandom see class Nx.ThreadSafeRandom UPDATE LOGS 2.3.0.0 add support http post file using RequestBuilder.WithFileInput. the RequestBuilder.WithFormData changes to RequestBuilder.WithTextInput 2.2.1.5 fixed bug in Nx.TimeUtil.GetTimestamp() 2.2.1.4 small bug fix. 2.2.1.3 Add "HttpMethod PUT" support for the core request utils. 2.2.1.2 fix the bug that the post data does not submitted after use Nx.Net.RequestBuilder.SetHttpMethod("POST") |
RequireLicenseAcceptance | False |
Tags | Nx Tiny |
Title | Nx Framework |
PackageSize | 934157 |
PackageHashAlgorithm | SHA512 |
PackageHash | YX7fdrG1IV97Xh80JN+TieuLyUvapYWc6uEQey2XKWgdn7qrM+NeTB134Rx3dcljpleUkTakRx5CCXYZ1ru2HA== |
DownloadCount | 000000 |
CreatedDate | 2014-11-16T06:12:09 |
Access
You can access data for this project using the tools and addresses described below.
NuGet (nuget.exe)
- Installing the package (HTTP Basic authentication):
-
nuget install Nx -Source http://nuget.gw.symbolsource.org/Public/NuGet/FeedService.mvc
- Installing the package (pre-authenticated):
-
nuget install Nx -Source http://nuget.gw.symbolsource.org/Public/%login%/%key%/NuGet/FeedService.mvc
NuGet (Package Manager Console)
- Installing the package (search all configured feeds):
-
Install-Package Nx
- Installing the package (HTTP Basic authentication):
-
Install-Package Nx -Source http://nuget.gw.symbolsource.org/Public/NuGet/FeedService.mvc
- Installing the package (pre-authenticated):
-
Install-Package Nx -Source http://nuget.gw.symbolsource.org/Public/%login%/%key%/NuGet/FeedService.mvc
- Uinstalling the package:
-
Uninstall-Package Nx
OpenWrap
- Installing the package:
-
o add-wrap Nx
- Uninstalling the package:
-
o remove-wrap Nx
Versions
A version is snapshot of a project's source code. It does not need to follow the Major.Minor.Revision.Build numbering pattern. It can be an arbitrary string of text that identifies a release or a build, in particular including meaningful words like beta, RC or RTM.