using Serein.Library.Api;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using static Microsoft.CodeAnalysis.CSharp.SyntaxTokenParser;
namespace Serein.NodeFlow.Services
{
///
/// 流程API服务,用于外部调用流程接口
///
public class FlowApiService
{
private readonly IFlowEnvironment flowEnvironment;
private readonly FlowModelService flowModelService;
///
/// 流程API服务构造函数
///
///
///
public FlowApiService(IFlowEnvironment flowEnvironment,
FlowModelService flowModelService)
{
this.flowEnvironment = flowEnvironment;
this.flowModelService = flowModelService;
}
/* object result = flowApiService.Invoke("", params);
TResult result = flowApiService.Invoke("", params);
object result = await flowApiService.InvokeAsync("", params);
TResult result = await flowApiService.InvokeAsync("", params);*/
public object Invoke(string apiName, object[] param)
{
return null;
}
public TResult Invoke(string apiName, object[] param)
{
return default(TResult);
}
public async Task