Skip to content

Commit

Permalink
发布新版本
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuovi committed Mar 2, 2023
1 parent b97abd2 commit 16ff1cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,40 +29,40 @@ XiaoFeng.Core generator with [XiaoFeng.Core](https://github.com/zhuovi/XiaoFeng.
.NET CLI

```
$ dotnet add package XiaoFeng.Core --version 2.0.4
$ dotnet add package XiaoFeng.Core --version 2.1.0
```

Package Manager

```
PM> Install-Package XiaoFeng.Core --Version 2.0.4
PM> Install-Package XiaoFeng.Core --Version 2.1.0
```

PackageReference

```
<PackageReference Include="XiaoFeng.Core" Version="2.0.4" />
<PackageReference Include="XiaoFeng.Core" Version="2.1.0" />
```
Paket CLI

```
> paket add XiaoFeng.Core --version 2.0.4
> paket add XiaoFeng.Core --version 2.1.0
```

Script & Interactive

```
> #r "nuget: XiaoFeng.Core, 2.0.4"
> #r "nuget: XiaoFeng.Core, 2.1.0"
```

Cake

```
// Install XiaoFeng.Core as a Cake Addin
#addin nuget:?package=XiaoFeng.Core&version=2.0.4
#addin nuget:?package=XiaoFeng.Core&version=2.1.0
// Install XiaoFeng.Core as a Cake Tool
#tool nuget:?package=XiaoFeng.Core&version=2.0.4
#tool nuget:?package=XiaoFeng.Core&version=2.1.0
```
# XiaoFeng 扩展方法

Expand Down Expand Up @@ -375,7 +375,8 @@ set.Save();

# XiaoFeng.HttpHelper 网络请求库

HttpHelper 是Http模拟请求库。
HttpHelper 是Http模拟请求库。提供了三种内核,HttpClient,HttpWebRequest,HttpSocket
默认用的是HttpClient内核

## 使用操作

Expand All @@ -385,6 +386,7 @@ HttpHelper 是Http模拟请求库。
var result = await XiaoFeng.Http.HttpHelper.GetHtmlAsync(new XiaoFeng.Http.HttpRequest
{
Method = HttpMethod.Get,//不设置默认为Get请求
HttpCore = HttpCore.HttpClient,//不设置默认为HttpClient
Address = "http://www.fayelf.com"
});
if (result.StatusCode == System.Net.HttpStatusCode.OK)
Expand Down
4 changes: 2 additions & 2 deletions XiaoFeng.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<Description>基础类库、数据库中间件、网络通讯中间件、HttpHelper、WebSocket客户端、Cache、JSON、XML、IO、配置、各种加密码算法、作业调度、正则、通用数据库操作,支持10多种数据库</Description>
<Copyright>CopyRight © 2008-2024 魔法精灵(www.fayelf.com) QQ:7092734 Email:[email protected]</Copyright>
<Company>魔法精灵</Company>
<VersionPrefix>2.0</VersionPrefix>
<VersionSuffix>5</VersionSuffix>
<VersionPrefix>2.1</VersionPrefix>
<VersionSuffix>0</VersionSuffix>
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
<FileVersion>$(Version)</FileVersion>
<AssemblyVersion>$(VersionPrefix)</AssemblyVersion>
Expand Down

0 comments on commit 16ff1cc

Please sign in to comment.