File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
- # Samples for ASP.NET Core 6.0, 7.0 and 8.0 RC 1 (495 )
1
+ # Samples for ASP.NET Core 6.0, 7.0 and 8.0 RC 1 (496 )
2
2
3
- - Samples for ASP.NET Core ** 8.0 RC 1** is available [ here] ( /projects/.net8 ) (33 ).
3
+ - Samples for ASP.NET Core ** 8.0 RC 1** is available [ here] ( /projects/.net8 ) (34 ).
4
4
- Samples for ASP.NET Core ** 7.0** is available [ here] ( /projects/.net7 ) (45).
5
5
- Samples for ASP.NET Core ** 8.0 Preview 6** using EdgeDB.NET is [ here] ( https://github.com/edgedb/edgedb-net ) .
6
6
Original file line number Diff line number Diff line change 1
- # ASP.NET 8.0 Preview 7 (33 )
1
+ # ASP.NET 8.0 Preview 7 (34 )
2
2
3
3
These samples require [ .NET 8.0 RC 1] ( https://github.com/dotnet/installer#table ) .
4
4
@@ -140,6 +140,10 @@ These samples require [.NET 8.0 RC 1](https://github.com/dotnet/installer#table)
140
140
141
141
## Keyed Services
142
142
143
- * [ Keyed Services in Minimal API]
143
+ * [ Keyed Services in Minimal API] ( keyed-service )
144
144
145
- Use ` IServiceProvider.GetRequiredKeyedService<T>(key) ` to get different type of implementation instances based on string key in Minimal API
145
+ Use ` IServiceProvider.GetRequiredKeyedService<T>(key) ` to get different type of implementation instances based on string key in Minimal API
146
+
147
+ * [ Keyed Services in MVC] ( keyed-service-2 )
148
+
149
+ Use ` IServiceProvider.GetRequiredKeyedService<T>(key) ` to get different type of implementation instances based on string key in MVC
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ string GetServiceKey()
39
39
var key = GetServiceKey ( ) ;
40
40
var greeting = _keyProvider . GetRequiredKeyedService < IGreeting > ( key ) ;
41
41
42
- return Content ( """
42
+ return Content ( $$ """
43
43
<html>
44
44
<body>
45
- {{ greeting.Message }}}
45
+ {{ greeting . Message }}
46
46
</body>
47
47
</html>
48
48
""" , "text/html" ) ;
You can’t perform that action at this time.
0 commit comments