mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 01:58:01 +08:00
fix 动态api支持调用异步方法
This commit is contained in:
@@ -155,12 +155,12 @@ namespace OpenAuth.WebApi.Controllers
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[AllowAnonymous]
|
||||
public Response<object> Invoke([FromBody] InvokeDynamicReq req)
|
||||
public async Task<Response<object>> Invoke([FromBody] InvokeDynamicReq req)
|
||||
{
|
||||
var result = new Response<object>();
|
||||
try
|
||||
{
|
||||
result.Result = _app.Invoke(req);
|
||||
result.Result = await _app.Invoke(req);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user