我在我的 nodejs 项目中使用 edge-js。我添加了 dll 文件并像这样导入它:
getHID = edge.func({
source: function() {/*
using System.Threading.Tasks;
using SDK.DataModel;
using SDK;
public class Startup
{
public async Task<object> Invoke(dynamic input)
{
string personId = input.nationalCode;
DO_IDENTIFIER healthCareProvider = new DO_IDENTIFIER();
healthCareProvider.Issuer = input.dedicated_organization;
healthCareProvider.Assigner = input.exporter_organization;
healthCareProvider.Type = input.type;
healthCareProvider.ID = input.medicalNumber;
DO_CODED_TEXT insurer = new DO_CODED_TEXT();
insurer.Value = input.name;
insurer.Terminology_id = input.code;
string codedString = (input.id).ToString();
insurer.Coded_string = codedString;
Service srv = new Service();
var result = srv.GetHIDurgent(personId, healthCareProvider, insurer, null);
return result;
}
}
*/},
references: ['OIS_TestMode_2_KeyA3.dll']
})
当我删除它Service srv = new Service()
并且result
它完美地工作而没有错误。但是当我添加Service srv = new Service()
并且result
它遵守但给我这个错误时:
Error: Invalid IL code in SDK.Service:.ctor (): IL_001d: pop
请帮我!!