Skip to content

Commit 87142f4

Browse files
committed
Fixed code link
1 parent 595ca3a commit 87142f4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

aspnetcore/fundamentals/minimal-apis/includes/responses7-8.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,11 @@ public interface IBindableFromHttpContext<TSelf>
243243

244244
By implementing the <xref:Microsoft.AspNetCore.Http.IBindableFromHttpContext%601>, you can create custom types that handle their own binding logic from the HttpContext. When a route handler includes a parameter of this type, the framework automatically calls the static BindAsync method to create the instance:
245245

246-
:::code language="csharp" source="~/fundamentals/minimal-apis/10.0-samples/CustomBindingExample/Program.cs" id="snippet_IBindableFromHttpContext":::
246+
:::code language="csharp" source="~/fundamentals/minimal-apis/8.0-samples/CustomBindingExample/Program.cs" id="snippet_IBindableFromHttpContext":::
247247

248248
The following is an example implementation of a custom parameter that binds from an HTTP header:
249249

250-
:::code language="csharp" source="~/fundamentals/minimal-apis/10.0-samples/CustomBindingExample/CustomBoundParameter.cs":::
250+
:::code language="csharp" source="~/fundamentals/minimal-apis/8.0-samples/CustomBindingExample/CustomBoundParameter.cs":::
251251

252252
You can also implement validation within your custom binding logic:
253253

aspnetcore/fundamentals/minimal-apis/includes/responses9.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ public interface IBindableFromHttpContext<TSelf>
237237

238238
By implementing the <xref:Microsoft.AspNetCore.Http.IBindableFromHttpContext%601>, you can create custom types that handle their own binding logic from the HttpContext. When a route handler includes a parameter of this type, the framework automatically calls the static BindAsync method to create the instance:
239239

240-
:::code language="csharp" source="~/fundamentals/minimal-apis/10.0-samples/CustomBindingExample/Program.cs" id="snippet_IBindableFromHttpContext":::
240+
:::code language="csharp" source="~/fundamentals/minimal-apis/9.0-samples/CustomBindingExample/Program.cs" id="snippet_IBindableFromHttpContext":::
241241

242242
The following is an example implementation of a custom parameter that binds from an HTTP header:
243243

244-
:::code language="csharp" source="~/fundamentals/minimal-apis/10.0-samples/CustomBindingExample/CustomBoundParameter.cs":::
244+
:::code language="csharp" source="~/fundamentals/minimal-apis/9.0-samples/CustomBindingExample/CustomBoundParameters.cs":::
245245

246246
You can also implement validation within your custom binding logic:
247247

aspnetcore/fundamentals/minimal-apis/responses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ By implementing the <xref:Microsoft.AspNetCore.Http.IBindableFromHttpContext%601
286286

287287
The following is an example implementation of a custom parameter that binds from an HTTP header:
288288

289-
:::code language="csharp" source="~/fundamentals/minimal-apis/10.0-samples/CustomBindingExample/CustomBoundParameter.cs":::
289+
:::code language="csharp" source="~/fundamentals/minimal-apis/10.0-samples/CustomBindingExample/CustomBoundParameters.cs":::
290290

291291
You can also implement validation within your custom binding logic:
292292

0 commit comments

Comments
 (0)