diff --git a/docs/enable-open-api-endpoints-out-of-proc.md b/docs/enable-open-api-endpoints-out-of-proc.md index a39541a7..6750f7b7 100644 --- a/docs/enable-open-api-endpoints-out-of-proc.md +++ b/docs/enable-open-api-endpoints-out-of-proc.md @@ -99,11 +99,11 @@ namespace MyOpenApiFunctionApp { var host = new HostBuilder() // Remove this line below - .ConfigureFunctionsWorkerDefaults() + .ConfigureFunctionsWebApplication() // Remove this line above // Add these lines below - .ConfigureFunctionsWorkerDefaults(worker => worker.UseNewtonsoftJson()) + .ConfigureFunctionsWebApplication(worker => worker.UseNewtonsoftJson()) // Add these lines above .Build();