mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
可自定义数据节点
This commit is contained in:
27
sop-sdk/sdk-csharp/SDKCSharp/Common/CustomDataNameBuilder.cs
Normal file
27
sop-sdk/sdk-csharp/SDKCSharp/Common/CustomDataNameBuilder.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
namespace SDKCSharp.Common
|
||||
{
|
||||
/// <summary>
|
||||
/// 返回固定的dataName
|
||||
/// </summary>
|
||||
public class CustomDataNameBuilder: DataNameBuilder
|
||||
{
|
||||
|
||||
private string dataName = "result";
|
||||
|
||||
public CustomDataNameBuilder()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public CustomDataNameBuilder(string dataName)
|
||||
{
|
||||
this.dataName = dataName;
|
||||
}
|
||||
|
||||
public string Build(string method)
|
||||
{
|
||||
return dataName;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user