共用方式為


延遲插件

會延遲設定範圍中隨機毫秒數的回應。

開發 Proxy 模擬 API 要求的延遲。

組態範例

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "LatencyPlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
      "configSection": "latencyPlugin"
    }
  ],
  "latencyPlugin": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/latencyplugin.schema.json",
    "minMs": 200,
    "maxMs": 10000
  }
}

組態屬性

財產 描述 違約
minMs 以毫秒為單位新增至要求的最低延遲量。 0
maxMs 以毫秒為單位新增至要求的最大延遲量。 五千

命令行選項

沒有

後續步驟