共用方式為


MockGeneratorPlugin

根據攔截的要求產生開發 Proxy 模擬。 將產生的模擬寫入目前工作資料夾中名為 mocks-yyyyMMddHHmmss.json 的檔案。

命令提示字元的螢幕快照,其中開發 Proxy 會產生攔截要求的模擬。

若要攔截要求,請在啟動開發 Proxy 之後,啟動 錄製。 當您完成時,請停止錄製。 開發 Proxy 會產生攔截要求的模擬,並將其寫入目前工作資料夾中名為 mocks-yyyyMMddHHmmss.json 的檔案。

組態範例

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v2.0.0/rc.schema.json",
  "plugins": [
    {
      "name": "MockGeneratorPlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll"
    }
  ]
}

組態屬性

沒有

命令行選項

沒有