LittleArcticFox.Core
1.0.2-dev
一个简单的框架,按道理,不会完善的吧。
This is a prerelease version of LittleArcticFox.Core.
Install-Package LittleArcticFox.Core -Version 1.0.2-dev
dotnet add package LittleArcticFox.Core --version 1.0.2-dev
<PackageReference Include="LittleArcticFox.Core" Version="1.0.2-dev" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LittleArcticFox.Core --version 1.0.2-dev
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LittleArcticFox.Core, 1.0.2-dev"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LittleArcticFox.Core as a Cake Addin
#addin nuget:?package=LittleArcticFox.Core&version=1.0.2-dev&prerelease
// Install LittleArcticFox.Core as a Cake Tool
#tool nuget:?package=LittleArcticFox.Core&version=1.0.2-dev&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Welcome to the LittleArcticFox wiki!
- 创建一个Asp.net Core Web项目,命名为xxxxx.Host,并删除其中的Controlls文件夹,该项目作为WebApi项目的启动,以下简称Host项目。
- 创建一个.NetCore的类库,明明为xxxxx.Application,一下简称Application项目。
- 在Application项目中安装NuGet中的LittleArcticFox.Core。
- 在Application中的AppService中继承AppService抽象类,并实现您的方法。
- 注意,在方法上需要标注[HttpPost],[HttpGet]等请求方式,参数若使用对象则需要在形参类型前加[FormBody]标识。
/// <summary>
///
/// </summary>
public class AppSimple : AppService, IAppSimple
{
/// <summary>
/// 测试用的方法
/// </summary>
/// <returns>一个字符串</returns>
[HttpGet]
public Task<string> GetString([FromBody] IdInput<int> input)
{
return Task.FromResult("Hello Little Actic Fox.");
}
}
Welcome to the LittleArcticFox wiki!
- 创建一个Asp.net Core Web项目,命名为xxxxx.Host,并删除其中的Controlls文件夹,该项目作为WebApi项目的启动,以下简称Host项目。
- 创建一个.NetCore的类库,明明为xxxxx.Application,一下简称Application项目。
- 在Application项目中安装NuGet中的LittleArcticFox.Core。
- 在Application中的AppService中继承AppService抽象类,并实现您的方法。
- 注意,在方法上需要标注[HttpPost],[HttpGet]等请求方式,参数若使用对象则需要在形参类型前加[FormBody]标识。
/// <summary>
///
/// </summary>
public class AppSimple : AppService, IAppSimple
{
/// <summary>
/// 测试用的方法
/// </summary>
/// <returns>一个字符串</returns>
[HttpGet]
public Task<string> GetString([FromBody] IdInput<int> input)
{
return Task.FromResult("Hello Little Actic Fox.");
}
}
Release Notes
临时起意。
不想负责。
不想维护。
随便玩的。
也许有用。
没有文档。
嗯。
Dependencies
-
.NETCoreApp 2.0
- Microsoft.AspNetCore.Mvc (>= 2.0.1)
Used By
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LittleArcticFox.Core:
Package | Downloads |
---|---|
LittleArcticFox.EntityFrameworkCore
一个简单的框架,按道理,不会完善的吧。
|
GitHub repositories
This package is not used by any popular GitHub repositories.