You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4 KiB
C#

4 months ago
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.TaskPlat.Dtos;
4 months ago
using DS.WMS.Core.TaskPlat.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.TaskPlat.Method
{
public class MyModuleTest1 : IMyModuleTest1
{
public Task<DataResult> TestMethod11(TaskFlowDataContext dataContext)
{
//throw new ArgumentException("缺少参数Age");
var address = dataContext.Get<string>("Address");
var height = dataContext.Get<string>("Height");
var info = dataContext.Get<TaskManageOrderMessageInfo>(nameof(TaskManageOrderMessageInfo));
var bcInfoVessel = info?.Main?.BCInfo.Vessel;
return Task.FromResult(DataResult.Successed($"TestMethod11返回的成功结果address:{address}height:{height}bcInfoVessel:{bcInfoVessel}"));
4 months ago
}
4 months ago
//public Task<DataResult> TestMethod11()
//{
// return Task.FromResult(DataResult.Successed($"TestMethod11返回的成功结果"));
//}
public Task<DataResult> TestMethod12(TaskFlowDataContext dataContext)
4 months ago
{
4 months ago
//throw new Exception("TestMethod12内的测试异常");
//return Task.FromResult(DataResult.Successed($"TestMethod12返回的成功结果"));
return Task.FromResult(DataResult.Failed($"TestMethod12返回的失败结果"));
4 months ago
}
}
}