{"id":50648,"date":"2025-08-10T11:37:20","date_gmt":"2025-08-10T03:37:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/50648.html"},"modified":"2025-08-10T11:37:20","modified_gmt":"2025-08-10T03:37:20","slug":"%e6%9e%84%e5%bb%ba%e5%b7%a5%e4%b8%9a%e8%87%aa%e5%8a%a8%e5%8c%96%e8%bd%af%e4%bb%b6%e6%a1%86%e6%9e%b6%ef%bc%9a%e6%b5%81%e7%a8%8b%e6%a0%b8%e5%bf%83%e6%90%ad%e5%bb%ba%ef%bc%88%e4%b8%80%ef%bc%89-%e6%b5%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/50648.html","title":{"rendered":"\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0"},"content":{"rendered":"<h3>\u6587\u7ae0\u540c\u6b65\u5728\u516c\u4f17\u53f7\u4e0e\u77e5\u4e4e\u66f4\u65b0&#xff0c;\u8d26\u53f7\u5168\u90e8\u540c\u540d\u3002\u641c\u7d22\u201c\u5c0f\u9ec4\u82b1\u5440\u5c0f\u9ec4\u82b1\u201d\u5373\u53ef\u627e\u5230\u6211\u3002 <\/h3>\n<h3>\u524d\u8a00<\/h3>\n<p>\u524d\u6bb5\u65f6\u95f4\u5f00\u59cb\u4e86\u6574\u4e2a\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\u7684\u5f00\u53d1&#xff0c;\u5df2\u7ecf\u5b8c\u6210\u4e86Common\u90e8\u5206\u7684\u5168\u90e8\u4ee3\u7801\u3002\u6309\u7167\u8ba1\u5212&#xff0c;\u4e0b\u4e00\u6b65\u7684\u8ba1\u5212\u5c31\u662f\u6d41\u7a0b\u6838\u5fc3\u5185\u5bb9\u7684\u5b9e\u73b0\u3002\u6309\u7167\u89c4\u5212&#xff0c;\u6d41\u7a0b\u6838\u5fc3\u5305\u542b\u4ee5\u4e0b\u51e0\u90e8\u5206\u5185\u5bb9&#xff1a;<\/p>\n<p>1.  \u5355\u6b65\u6d41\u7a0b\u63a5\u53e3<br \/>\n2.  \u6d41\u7a0b\u5f15\u64ce<br \/>\n3.  \u72b6\u6001\u673a\u4e0e\u5de5\u7ad9\u7ba1\u7406<br \/>\n4.  \u6d41\u7a0b\u95f4\u4ea4\u4e92\u7684\u4e8b\u4ef6\u603b\u7ebf<\/p>\n<p>\u6211\u5bf9\u6d41\u7a0b\u60f3\u6cd5\u9996\u5148\u662f&#xff0c;\u6240\u6709\u6d41\u7a0b\u90fd\u662f\u5355\u72ec\u5b58\u50a8\u5728json\u6587\u4ef6\u4e2d&#xff0c;\u6bcf\u6b21\u542f\u52a8\u4ece\u672c\u5730\u8bfb\u53d6json&#xff0c;\u7136\u540e\u6309\u7167\u89c4\u5212\u7684\u987a\u5e8f\u6267\u884c\u6d41\u7a0b\u3002\u800cjson\u7684\u6765\u6e90\u53ef\u4ee5\u662f\u754c\u9762\u7684\u7f16\u8f91\u7684\u81ea\u52a8\u5b58\u50a8&#xff0c;\u4e5f\u53ef\u4ee5\u662f\u6765\u81ea\u4ee3\u7801\u624b\u52a8\u7f16\u5199\u597d\u540e\u7684\u624b\u52a8\u5b58\u50a8&#xff0c;\u8fd9\u5230\u4e86\u754c\u9762\u5f00\u53d1\u7684\u65f6\u5019\u5177\u4f53\u518d\u770b\u3002<\/p>\n<p>\u7136\u540e\u662f\u5404\u4e2a\u6d41\u7a0b\u4e4b\u95f4\u7684\u4ea4\u4e92&#xff0c;\u8ba1\u5212\u4f7f\u7528\u4e8b\u4ef6\u6765\u5b9e\u73b0&#xff0c;\u8fd9\u6837\u907f\u514d\u4e86\u5168\u5c40\u53d8\u91cf\u7684\u4f7f\u7528&#xff0c;\u4e5f\u53ef\u4ee5\u66f4\u597d\u7684\u89e3\u8026\u3002<\/p>\n<p>\u6700\u540e\u662f\u6d41\u7a0b\u7684\u6267\u884c&#xff0c;\u73b0\u5728\u8ba1\u5212\u662f\u56de\u96f6\u548c\u8fd0\u884c\u5171\u7528\u540c\u6837\u7684\u5de5\u7ad9\u7ba1\u7406&#xff0c;\u4e5f\u5c31\u662f\u4e00\u4e2a\u5de5\u7ad9\u62e5\u6709\u4e00\u4e2a\u56de\u96f6\u5de5\u7ad9\u548c\u4e00\u4e2a\u8fd0\u884c\u5de5\u7ad9&#xff0c;\u540e\u7eed\u4f1a\u5728\u5b9e\u73b0\u7684\u8fc7\u7a0b\u4e2d&#xff0c;\u518d\u6839\u636e\u53ef\u884c\u6027\u548c\u65b9\u4fbf\u6027\u8fdb\u884c\u4f18\u5316\u3002<\/p>\n<p>\u672c\u7bc7\u4e3b\u8981\u5148\u5b9e\u73b0\u6d41\u7a0b\u5f15\u64ce\/\u4e0a\u4e0b\u6587&#xff0c;\u8fd9\u90e8\u5206\u4e5f\u662f\u6211\u8fd9\u4e2a\u8f6f\u4ef6\u7684\u6838\u5fc3\u529f\u80fd\u3002<\/p>\n<h3>\u00a0\u7c7b\u56fe<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033718-689813eed008e.webp\" \/><\/p>\n<h3>\u4ee3\u7801\u5b9e\u73b0<\/h3>\n<h4>\u6d41\u7a0b\u5f15\u64ce<\/h4>\n<p>\u5f15\u64ce\u7684\u4e3b\u8981\u4f5c\u7528\u662f\u5b8c\u6210\u6d41\u7a0b\u7684\u8bfb\u53d6\u4ee5\u53ca\u6d41\u7a0b\u7684\u6267\u884c&#xff0c;\u8fd9\u90e8\u5206\u8fd8\u5305\u542b\u4e00\u4e2a\u6d41\u7a0b\u63a7\u5236\u5668\u63a5\u53e3&#xff0c;\u4e3b\u8981\u662f\u5c06\u6d41\u7a0b\u5f15\u64ce\u7684\u63a7\u5236\u72ec\u7acb\u51fa\u6765\u3002<\/p>\n<p>\u63a5\u53e3<\/p>\n<p>\/\/\/ &lt;summary&gt;<br \/>\n\/\/\/ \u6d41\u7a0b\u5f15\u64ce\u63a5\u53e3<br \/>\n\/\/\/ &lt;summary&gt;<br \/>\npublic interface IFlowEngine<br \/>\n{<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u6d41\u7a0b\u540d\u79f0 \u6765\u81eaWorkStation<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    string FlowName { get; }<\/p>\n<p>    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u6267\u884c\u6d41\u7a0b\u53ef\u7b49\u5f85\u65b9\u6cd5<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    \/\/\/ &lt;param name&#061;&#034;context&#034;&gt;&lt;\/param&gt;<br \/>\n    \/\/\/ &lt;param name&#061;&#034;cts&#034;&gt;&lt;\/param&gt;<br \/>\n    \/\/\/ &lt;returns&gt;&lt;\/returns&gt;<br \/>\n    Task AsyncExecuteFlow(IFlowContext context, CancellationTokenSource cts);<br \/>\n}<br \/>\n\/\/\/ &lt;summary&gt;<br \/>\n\/\/\/ \u6d41\u7a0b\u63a7\u5236\u5668\u63a5\u53e3<br \/>\n\/\/\/ &lt;summary&gt;<br \/>\npublic interface IFlowController<br \/>\n{<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u6d41\u7a0b\u5df2\u6682\u505c<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    bool IsPaused { get; }<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u6d41\u7a0b\u5df2\u505c\u6b62<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    bool IsStopped { get; }<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u6d41\u7a0b\u8fd0\u884c\u4e2d<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    bool IsRunning { get; }<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u5f53\u524d\u6b65\u6570<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    int CurrentIndex { get; }<\/p>\n<p>    void Pause();<br \/>\n    void Resume();<br \/>\n    void Stop();<br \/>\n}<\/p>\n<p>\u5b9e\u73b0<\/p>\n<p>\u6d41\u7a0b\u5f15\u64ce\u9700\u8981\u540c\u65f6\u5b9e\u73b0IFlowEngine\u548cIFlowController\u4e24\u4e2a\u63a5\u53e3\u3002\u4e00\u4e2a\u7528\u6765\u6267\u884c&#xff0c;\u4e00\u4e2a\u7528\u6765\u63a7\u5236\u3002<\/p>\n<p>AsyncExecuteFlow\u65b9\u6cd5\u662f\u8be5\u7c7b\u7684\u6838\u5fc3\u65b9\u6cd5&#xff0c;\u540e\u7eed\u5728\u5de5\u7ad9\u7ba1\u7406\u4e2d&#xff0c;\u8fd0\u884c\u6d41\u7a0b\u65f6\u5c31\u8c03\u7528\u5b83\u3002\u65b9\u6cd5\u652f\u6301\u5f02\u6b65\u6267\u884c\u4e0e\u53d6\u6d88&#xff0c;CancellationTokenSource\u5b9e\u73b0\u53d6\u6d88\u529f\u80fd&#xff0c;\u6765\u6e90\u662f\u4e0a\u5c42\u7684WorkStation\u3002<\/p>\n<p>public class FlowEngine : IFlowEngine, IFlowController<br \/>\n{<br \/>\n    #region \u6784\u9020\u51fd\u6570<br \/>\n    public FlowEngine(string flowName, IConfigManagerFactory configFactory)<br \/>\n    {<br \/>\n        FlowName &#061; flowName;<br \/>\n        \/\/\u4ece\u6587\u4ef6\u4e2d\u52a0\u8f7d\u6d41\u7a0b\u96c6\u5408<br \/>\n        _configManager &#061; configFactory.CreateConfigManager(ConfigType.json, FlowName, &#034;FlowData&#034;);<br \/>\n        _steps &#061; _configManager.LoadConfig&lt;List&lt;IFlowStep&gt;&gt;();<br \/>\n    }<br \/>\n    #endregion<\/p>\n<p>    #region \u5c5e\u6027<br \/>\n    public string FlowName { get; }<br \/>\n    public bool IsPaused &#061;&gt; _isPaused;<br \/>\n    public bool IsStopped &#061;&gt; _isStopped;<br \/>\n    public bool IsRunning &#061;&gt; _isRunning;<br \/>\n    public int CurrentIndex &#061;&gt; _currentIndex;<br \/>\n    #endregion<\/p>\n<p>    #region \u5b57\u6bb5<br \/>\n    private bool _isPaused;<br \/>\n    private bool _isStopped;<br \/>\n    private bool _isRunning;<br \/>\n    private int _currentIndex;<br \/>\n    private ILoggerManager _logger;<br \/>\n    private readonly IConfigManager _configManager;<br \/>\n    private readonly List&lt;IFlowStep&gt; _steps;<br \/>\n    private CancellationTokenSource _cts;<br \/>\n    private readonly object _lock &#061; new object();<br \/>\n    private IFlowStep _currentStep;<br \/>\n    #endregion<\/p>\n<p>    #region \u65b9\u6cd5<br \/>\n    public virtual async Task AsyncExecuteFlow(IFlowContext context, CancellationTokenSource cts)<br \/>\n    {<br \/>\n        _logger &#061; context.Logger;<br \/>\n        context.TotalSteps &#061; _steps.Count;<br \/>\n        try<br \/>\n        {<br \/>\n            if (_cts !&#061; null)<br \/>\n            {<br \/>\n                _logger.Info($&#034;\u6d41\u7a0b\u3010{FlowName}\u3011\u5df2\u7ecf\u5728\u8fd0\u884c\u4e2d&#034;);<br \/>\n                return;<br \/>\n            }<br \/>\n            _isRunning &#061; true;<br \/>\n            _cts &#061; cts;<br \/>\n            _currentIndex &#061; 0;<br \/>\n            while (_currentIndex &lt; _steps.Count &amp;&amp; !_isStopped)<br \/>\n            {<br \/>\n                while (_isPaused &amp;&amp; !_isStopped)<br \/>\n                {<br \/>\n                    if (IsCanceled())<br \/>\n                    {<br \/>\n                        break;<br \/>\n                    }<br \/>\n                    await Task.Delay(100);<br \/>\n                }<br \/>\n                if (IsCanceled())<br \/>\n                {<br \/>\n                    break;<br \/>\n                }<br \/>\n                _currentStep &#061; _steps[_currentIndex];<br \/>\n                if (_currentStep !&#061; null)<br \/>\n                {<br \/>\n                    _logger.Info($&#034;\u5f00\u59cb\u6267\u884c\u6b65\u9aa4\u3010{_currentStep.StepName}\u3011&#8230;&#034;);<br \/>\n                    var result &#061; await _currentStep.AsyncExecuteStep(context, _cts.Token);<br \/>\n                    if (result.Status &#061;&#061; StepStatus.Failure)<br \/>\n                    {<br \/>\n                        string msg &#061; $&#034;\u6b65\u9aa4\u3010{_currentStep.StepName}\u3011\u6267\u884c\u5931\u8d25&#xff1a;{result.Message}&#034;;<br \/>\n                        _logger.Error(msg);<br \/>\n                        throw new StepExecuteException(msg);<br \/>\n                    }<br \/>\n                }<br \/>\n                _currentIndex &#061; context.NextStepIndex;<br \/>\n            }<br \/>\n        }<br \/>\n        catch (OperationCanceledException)<br \/>\n        {<br \/>\n            _logger.Info($&#034;\u6d41\u7a0b\u3010{FlowName}\u3011\u88ab\u53d6\u6d88&#034;);<br \/>\n        }<br \/>\n        catch (StepExecuteException e)<br \/>\n        {<br \/>\n            _logger.Error($&#034;\u6d41\u7a0b\u6b65\u9aa4\u5931\u8d25&#xff1a;{e.Message}&#034;);<br \/>\n            throw;<br \/>\n        }<br \/>\n        catch (Exception e)<br \/>\n        {<br \/>\n            _logger.Error($&#034;\u6d41\u7a0b\u6267\u884c\u5f02\u5e38&#xff1a;{e}&#034;);<br \/>\n            throw;<br \/>\n        }<br \/>\n        finally<br \/>\n        {<br \/>\n            _logger.Info($&#034;\u6d41\u7a0b\u3010{FlowName}\u3011\u6267\u884c\u5b8c\u6210&#xff08;\u6216\u88ab\u4e2d\u6b62&#xff09;&#034;);<br \/>\n            _cts?.Dispose();<br \/>\n            _cts &#061; null;<br \/>\n            _isStopped &#061; false;<br \/>\n            _isPaused &#061; false;<br \/>\n            _isRunning &#061; false;<br \/>\n        }<br \/>\n    }<\/p>\n<p>    private bool IsCanceled()<br \/>\n    {<br \/>\n        if (_cts?.Token.IsCancellationRequested &#061;&#061; true)<br \/>\n        {<br \/>\n            _logger.Info($&#034;\u6d41\u7a0b\u3010{FlowName}\u3011\u8fd0\u884c\u5df2\u53d6\u6d88&#034;);<br \/>\n            return true;<br \/>\n        }<br \/>\n        return false;<br \/>\n    }<\/p>\n<p>    public void Pause()<br \/>\n    {<br \/>\n        lock (_lock)<br \/>\n        {<br \/>\n            if (_isRunning &amp;&amp; !_isPaused)<br \/>\n            {<br \/>\n                _isPaused &#061; true;<br \/>\n                _logger.Info($&#034;\u6d41\u7a0b\u3010{FlowName}\u3011\u5df2\u7ecf\u6682\u505c&#034;);<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    public virtual void Resume()<br \/>\n    {<br \/>\n        lock (_lock)<br \/>\n        {<br \/>\n            if (_isRunning &amp;&amp; _isPaused)<br \/>\n            {<br \/>\n                _logger.Info($&#034;\u6d41\u7a0b\u3010{FlowName}\u3011\u5df2\u7ecf\u6062\u590d&#034;);<br \/>\n                _isPaused &#061; false;<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    public virtual void Stop()<br \/>\n    {<br \/>\n        lock (_lock)<br \/>\n        {<br \/>\n            _isStopped &#061; true;<br \/>\n        }<br \/>\n    }<br \/>\n    #endregion<br \/>\n}<\/p>\n<h4>\u6d41\u7a0b\u4e0a\u4e0b\u6587<\/h4>\n<p>\u4e0a\u4e0b\u6587\u4e3b\u8981\u7528\u6765\u5b58\u50a8\u6574\u4e2a\u6d41\u7a0b\u4e2d\u4f7f\u7528\u5230\u7684\u6570\u636e&#xff0c;\u65e5\u5fd7\u4e5f\u662f\u653e\u5728\u4e0a\u4e0b\u6587\u4e2d&#xff0c;\u8fd9\u6837\u6d41\u7a0b\u4e2d\u4efb\u4f55\u5730\u65b9\u90fd\u53ef\u4ee5\u4f7f\u7528\u540c\u4e00\u4e2a\u65e5\u5fd7\u3002\u540c\u65f6\u5305\u542b\u4e00\u4e2aClone\u6d45\u62f7\u8d1d\u65b9\u6cd5&#xff0c;\u9ad8\u6548\u652f\u6301\u5e76\u884c\u6d41\u7a0b&#xff0c;\u540e\u7eed\u4e8e\u5355\u6b65\u6d41\u7a0b\u4e2d\u9700\u8981\u6267\u884c\u4e00\u6bb5\u6d41\u7a0b\u65f6\u4f7f\u7528&#xff0c;\u4e3b\u8981\u662f\u5e76\u884c\u548c\u5faa\u73af\u6d41\u7a0b\u4f7f\u7528\u3002<\/p>\n<p>\u63a5\u53e3<\/p>\n<p>\u63a5\u53e3\u4e2d\u5305\u542b\u5305\u542b\u5b58\u50a8\u6570\u636e_data&#xff0c;\u8fd9\u4e2a\u6570\u636e\u4e0d\u7ba1\u6709\u6ca1\u6709\u5206\u652f\u6d41\u7a0b&#xff0c;\u4e00\u4e2a\u6d41\u7a0b\u4e2d\u5168\u90e8\u90fd\u516c\u7528\u4e00\u4e2a&#xff0c;\u5b58\u50a8\u5168\u5c40\u72b6\u6001\u3002\u5176\u4ed6\u53c2\u6570\u5728\u5e76\u884c\u6216\u8005\u5faa\u73af\u65f6\u5e94\u8be5\u5206\u522b\u63a7\u5236\u3002<\/p>\n<p>public interface IFlowContext<br \/>\n{<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u6d41\u7a0b\u540d\u79f0 \u6765\u81eaWorkStation<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    string FlowName { get; }<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u4ece\u5355\u6b65\u4e2d\u83b7\u53d6\u5230\u7684\u4e0b\u4e00\u6b65\u7d22\u5f15<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    int NextStepIndex { get; set; }<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u6d41\u7a0b\u603b\u6b65\u6570<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    int TotalSteps { get; set; }<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ \u5b58\u50a8\u6d41\u7a0b\u4e2d\u7684\u6570\u636e<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    Dictionary&lt;string, object&gt; Data { get; }<br \/>\n    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ Flow\u4f7f\u7528\u65e5\u5fd7<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    ILoggerManager Logger { get; }<\/p>\n<p>    T GetData&lt;T&gt;(string key);<br \/>\n    void SetData&lt;T&gt;(string key, T value);<br \/>\n    IFlowContext Clone();<br \/>\n}<\/p>\n<p>\u5b9e\u73b0<\/p>\n<p>public class FlowContext : IFlowContext<br \/>\n{<br \/>\n    #region \u6784\u9020\u51fd\u6570<br \/>\n    public FlowContext(string flowName, ILoggerFactory loggerFactory)<br \/>\n    {<br \/>\n        FlowName &#061; flowName;<br \/>\n        _loggerFactory &#061; loggerFactory;<br \/>\n        Logger &#061; _loggerFactory.CreateLogger(flowName);<br \/>\n        _data &#061; new Dictionary&lt;string, object&gt;();<br \/>\n    }<br \/>\n    #endregion<\/p>\n<p>    #region \u5c5e\u6027<br \/>\n    public string FlowName { get; }<br \/>\n    public int NextStepIndex { get; set; }<br \/>\n    public int TotalSteps { get; set; }<br \/>\n    public Dictionary&lt;string, object&gt; Data &#061;&gt; _data;<br \/>\n    public ILoggerManager Logger { get; }<br \/>\n    #endregion<\/p>\n<p>    #region \u5b57\u6bb5<br \/>\n    private readonly Dictionary&lt;string, object&gt; _data;<br \/>\n    private readonly ILoggerFactory _loggerFactory;<br \/>\n    #endregion<\/p>\n<p>    #region \u65b9\u6cd5<br \/>\n    public T GetData&lt;T&gt;(string key)<br \/>\n    {<br \/>\n        return _data.TryGetValue(key, out var value) ? (T)value : default;<br \/>\n    }<\/p>\n<p>    public void SetData&lt;T&gt;(string key, T value)<br \/>\n    {<br \/>\n        _data[key] &#061; value;<br \/>\n    }<\/p>\n<p>    \/\/\/ &lt;summary&gt;<br \/>\n    \/\/\/ data\u4e3a\u6d45\u62f7\u8d1d&#xff0c;\u6570\u636e\u516c\u7528&#xff0c;\u5176\u4f59\u5b57\u6bb5\u4e0d\u5171\u7528<br \/>\n    \/\/\/ &lt;\/summary&gt;<br \/>\n    \/\/\/ &lt;returns&gt;&lt;\/returns&gt;<br \/>\n    public IFlowContext Clone()<br \/>\n    {<br \/>\n        var cloned &#061; new FlowContext(this.FlowName, _loggerFactory);<br \/>\n        var dataField &#061; typeof(FlowContext).GetField(&#034;_data&#034;, System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);<br \/>\n        dataField?.SetValue(cloned, this._data);<br \/>\n        return cloned;<br \/>\n    }<br \/>\n    #endregion<br \/>\n}<\/p>\n<h4>\u5de5\u5382<\/h4>\n<p>\u4e0e\u524d\u9762\u7684\u65e5\u5fd7\u4e00\u6837&#xff0c;\u7531\u4e8e\u6784\u9020\u51fd\u6570\u8981\u4f20\u5165\u540d\u79f0\u548c\u5176\u4ed6\u7684\u4f9d\u8d56\u6ce8\u5165&#xff0c;\u6240\u4ee5\u4f7f\u7528\u5de5\u5382\u6a21\u5f0f\u6765\u521b\u5efa\u6d41\u7a0b\u5f15\u64ce\u548c\u4e0a\u4e0b\u6587\u3002<\/p>\n<p>public class FlowContextFactory : IFlowContextFactory<br \/>\n{<br \/>\n    #region \u6784\u9020\u51fd\u6570<br \/>\n    public FlowContextFactory(ILoggerFactory loggerFactory)<br \/>\n    {<br \/>\n        _loggerfactory &#061; loggerFactory;<br \/>\n    }<br \/>\n    #endregion<\/p>\n<p>    #region \u5b57\u6bb5<br \/>\n    private readonly ConcurrentDictionary&lt;string, IFlowContext&gt; _flowContextcache &#061; new ConcurrentDictionary&lt;string, IFlowContext&gt;();<\/p>\n<p>    private readonly ILoggerFactory _loggerfactory;<br \/>\n    #endregion<\/p>\n<p>    #region \u65b9\u6cd5<br \/>\n    public IFlowContext CreateFlowContext(string flowName)<br \/>\n    {<br \/>\n        return _flowContextcache.GetOrAdd(flowName, new FlowContext(flowName, _loggerfactory));<br \/>\n    }<br \/>\n    #endregion<br \/>\n}<\/p>\n<p>public class FlowEngineFactory : IFlowEngineFactory<br \/>\n{<br \/>\n    #region \u6784\u9020\u51fd\u6570<br \/>\n    public FlowEngineFactory(IConfigManagerFactory configFactory)<br \/>\n    {<br \/>\n        _configFactory &#061; configFactory;<br \/>\n    }<br \/>\n    #endregion<\/p>\n<p>    #region \u5b57\u6bb5<br \/>\n    private readonly ConcurrentDictionary&lt;string, IFlowEngine&gt; _flowEnginecache &#061; new ConcurrentDictionary&lt;string, IFlowEngine&gt;();<\/p>\n<p>    private readonly IConfigManagerFactory _configFactory;<br \/>\n    #endregion<\/p>\n<p>    #region \u65b9\u6cd5<br \/>\n    public IFlowEngine CreateFlowEngine(string flowName)<br \/>\n    {<br \/>\n        return _flowEnginecache.GetOrAdd(flowName, new FlowEngine(flowName, _configFactory));<br \/>\n    }<br \/>\n    #endregion<br \/>\n}<\/p>\n<h4>\u5bb9\u5668\u6ce8\u518c<\/h4>\n<p>\u5de5\u5382\u6ce8\u518c\u5230\u5bb9\u5668\u4e2d&#xff0c;\u7136\u540e\u901a\u8fc7DI\u7684\u65b9\u5f0f\u518d\u6ce8\u5165\u540e\u7eed\u5de5\u7ad9\u7ba1\u7406\u4e2d&#xff0c;\u6700\u540e\u5728\u5de5\u7ad9\u7ba1\u7406\u4e2d\u521b\u5efa\u5b9e\u4f8b\u3002<\/p>\n<p>builder.RegisterType&lt;FlowEngineFactory&gt;()<br \/>\n                .As&lt;IFlowEngineFactory&gt;()<br \/>\n                .SingleInstance();<\/p>\n<p>builder.RegisterType&lt;FlowContextFactory&gt;()<br \/>\n                .As&lt;IFlowContextFactory&gt;()<br \/>\n                .SingleInstance();<\/p>\n<h3>\u00a0<\/h3>\n<h3>\u540e\u8bb0<\/h3>\n<p>\u5f53\u524d\u5df2\u5b8c\u6210\u6d41\u7a0b\u5f15\u64ce\u4e0e\u4e0a\u4e0b\u6587\u6a21\u5757\u7684\u5f00\u53d1&#xff0c;\u8fd9\u4e24\u8005\u6784\u6210\u6574\u4e2a\u6d41\u7a0b\u63a7\u5236\u7cfb\u7edf\u7684\u6838\u5fc3&#xff0c;\u4e0b\u4e00\u6b65\u5c06\u7ee7\u7eed\u63a8\u8fdb\u6d41\u7a0b\u5355\u6b65&#xff08;FlowStep&#xff09;\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0\u3002\u540e\u7eed\u4e5f\u4f1a\u6db5\u76d6\u72b6\u6001\u673a\u3001\u4e8b\u4ef6\u7cfb\u7edf\u7b49\u5b50\u6a21\u5757\u7684\u5f00\u53d1\u3002\u76f8\u5173\u6e90\u4ee3\u7801\u5df2\u6258\u7ba1\u81f3 GitHub&#xff0c;\u6b22\u8fce\u611f\u5174\u8da3\u7684\u670b\u53cb\u67e5\u770b\u4e0e\u63d0\u51fa\u5efa\u8bae\u3002<\/p>\n<p>\u00a0\u6b22\u8fce\u5173\u6ce8\u4e13\u680f\u67e5\u770b\u4ee5\u5f80\u5185\u5bb9\u4ee5\u53ca\u540e\u7eed\u66f4\u65b0\u3002\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6<\/p>\n<p>\u4ee3\u7801\u653e\u5728\u4e86Github\u4e0a&#xff0c;\u6b22\u8fce\u56f4\u89c2&#xff0c;\u6b22\u8fce Star\/Fork\/ \u63d0Issue\u3002\u00a0Sophon_Github\u5730\u5740<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033719-689813ef1054d.webp\" \/>\u200b<\/p>\n<p>\u77e5\u4e4e\u516c\u4f17\u53f7\u540c\u6b65\u66f4\u65b0&#xff0c;\u6b22\u8fce\u5173\u6ce8\u516c\u4f17\u53f7\u3002<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb758\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\u4e2d\u6d41\u7a0b\u5f15\u64ce\u6a21\u5757\u7684\u5b9e\u73b0\u3002\u8be5\u6a21\u5757\u5305\u542b\u6d41\u7a0b\u5f15\u64ce(FlowEngine)\u548c\u6d41\u7a0b\u4e0a\u4e0b\u6587(FlowContext)\u4e24\u4e2a\u6838\u5fc3\u7ec4\u4ef6\uff0c\u901a\u8fc7\u63a5\u53e3\u8bbe\u8ba1\u5b9e\u73b0\u4e86\u6d41\u7a0b\u6267\u884c\u4e0e\u63a7\u5236\u5206\u79bb\u3002\u6d41\u7a0b\u5f15\u64ce\u652f\u6301\u4eceJSON\u6587\u4ef6\u52a0\u8f7d\u6d41\u7a0b\u6b65\u9aa4\uff0c\u63d0\u4f9b\u5f02\u6b65\u6267\u884c\u3001\u6682\u505c\u3001\u6062\u590d\u548c\u505c\u6b62\u529f\u80fd\uff0c\u5e76\u91c7\u7528CancellationToken\u5b9e\u73b0\u53d6\u6d88\u64cd\u4f5c\u3002\u6d41\u7a0b\u4e0a\u4e0b\u6587\u7528\u4e8e\u5b58\u50a8\u5168\u5c40\u6570\u636e\u548c\u65e5\u5fd7\uff0c\u652f\u6301\u6d45\u62f7\u8d1d\u4ee5\u5b9e\u73b0\u5e76\u884c\u6d41\u7a0b\u3002\u4e24\u4e2a\u5de5\u5382\u7c7b(FlowEngineFactory\u548cFlowContextFactory)\u901a\u8fc7\u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\u7ba1\u7406\u5b9e\u4f8b\u521b\u5efa\u3002\u8be5\u8bbe\u8ba1\u5b9e\u73b0\u4e86\u6d41\u7a0b\u7684\u89e3\u8026\u63a7<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,3706,3707,4944,395,4945],"topic":[],"class_list":["post-50648","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-plc","tag-3707","tag-4944","tag-395","tag-4945"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/50648.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb758\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\u4e2d\u6d41\u7a0b\u5f15\u64ce\u6a21\u5757\u7684\u5b9e\u73b0\u3002\u8be5\u6a21\u5757\u5305\u542b\u6d41\u7a0b\u5f15\u64ce(FlowEngine)\u548c\u6d41\u7a0b\u4e0a\u4e0b\u6587(FlowContext)\u4e24\u4e2a\u6838\u5fc3\u7ec4\u4ef6\uff0c\u901a\u8fc7\u63a5\u53e3\u8bbe\u8ba1\u5b9e\u73b0\u4e86\u6d41\u7a0b\u6267\u884c\u4e0e\u63a7\u5236\u5206\u79bb\u3002\u6d41\u7a0b\u5f15\u64ce\u652f\u6301\u4eceJSON\u6587\u4ef6\u52a0\u8f7d\u6d41\u7a0b\u6b65\u9aa4\uff0c\u63d0\u4f9b\u5f02\u6b65\u6267\u884c\u3001\u6682\u505c\u3001\u6062\u590d\u548c\u505c\u6b62\u529f\u80fd\uff0c\u5e76\u91c7\u7528CancellationToken\u5b9e\u73b0\u53d6\u6d88\u64cd\u4f5c\u3002\u6d41\u7a0b\u4e0a\u4e0b\u6587\u7528\u4e8e\u5b58\u50a8\u5168\u5c40\u6570\u636e\u548c\u65e5\u5fd7\uff0c\u652f\u6301\u6d45\u62f7\u8d1d\u4ee5\u5b9e\u73b0\u5e76\u884c\u6d41\u7a0b\u3002\u4e24\u4e2a\u5de5\u5382\u7c7b(FlowEngineFactory\u548cFlowContextFactory)\u901a\u8fc7\u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\u7ba1\u7406\u5b9e\u4f8b\u521b\u5efa\u3002\u8be5\u8bbe\u8ba1\u5b9e\u73b0\u4e86\u6d41\u7a0b\u7684\u89e3\u8026\u63a7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/50648.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-10T03:37:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033718-689813eed008e.webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50648.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/50648.html\",\"name\":\"\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-10T03:37:20+00:00\",\"dateModified\":\"2025-08-10T03:37:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/50648.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/50648.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50648.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/50648.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb758\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\u4e2d\u6d41\u7a0b\u5f15\u64ce\u6a21\u5757\u7684\u5b9e\u73b0\u3002\u8be5\u6a21\u5757\u5305\u542b\u6d41\u7a0b\u5f15\u64ce(FlowEngine)\u548c\u6d41\u7a0b\u4e0a\u4e0b\u6587(FlowContext)\u4e24\u4e2a\u6838\u5fc3\u7ec4\u4ef6\uff0c\u901a\u8fc7\u63a5\u53e3\u8bbe\u8ba1\u5b9e\u73b0\u4e86\u6d41\u7a0b\u6267\u884c\u4e0e\u63a7\u5236\u5206\u79bb\u3002\u6d41\u7a0b\u5f15\u64ce\u652f\u6301\u4eceJSON\u6587\u4ef6\u52a0\u8f7d\u6d41\u7a0b\u6b65\u9aa4\uff0c\u63d0\u4f9b\u5f02\u6b65\u6267\u884c\u3001\u6682\u505c\u3001\u6062\u590d\u548c\u505c\u6b62\u529f\u80fd\uff0c\u5e76\u91c7\u7528CancellationToken\u5b9e\u73b0\u53d6\u6d88\u64cd\u4f5c\u3002\u6d41\u7a0b\u4e0a\u4e0b\u6587\u7528\u4e8e\u5b58\u50a8\u5168\u5c40\u6570\u636e\u548c\u65e5\u5fd7\uff0c\u652f\u6301\u6d45\u62f7\u8d1d\u4ee5\u5b9e\u73b0\u5e76\u884c\u6d41\u7a0b\u3002\u4e24\u4e2a\u5de5\u5382\u7c7b(FlowEngineFactory\u548cFlowContextFactory)\u901a\u8fc7\u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\u7ba1\u7406\u5b9e\u4f8b\u521b\u5efa\u3002\u8be5\u8bbe\u8ba1\u5b9e\u73b0\u4e86\u6d41\u7a0b\u7684\u89e3\u8026\u63a7","og_url":"https:\/\/www.wsisp.com\/helps\/50648.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-10T03:37:20+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033718-689813eed008e.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/50648.html","url":"https:\/\/www.wsisp.com\/helps\/50648.html","name":"\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-10T03:37:20+00:00","dateModified":"2025-08-10T03:37:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/50648.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/50648.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/50648.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6784\u5efa\u5de5\u4e1a\u81ea\u52a8\u5316\u8f6f\u4ef6\u6846\u67b6\uff1a\u6d41\u7a0b\u6838\u5fc3\u642d\u5efa\uff08\u4e00\uff09 \u6d41\u7a0b\u5f15\u64ce\u3001\u4e0a\u4e0b\u6587\u5b9e\u73b0"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=50648"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50648\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=50648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=50648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=50648"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=50648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}