fix snippet tag (#262)

pull/263/head^2
Rick Anderson 2024-09-05 16:30:31 -10:00 committed by GitHub
parent c930a168f4
commit bad7a53fcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class MyHub : Hub
// </snippet_1>
#endif
#if SECONDARY
// </snippet_1>
// </snippet_2>
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddKeyedSingleton<MySingletonClass>("test");
builder.Services.AddKeyedScoped<MyScopedClass>("test2");
@ -78,5 +78,5 @@ internal class MyMiddleware
[FromKeyedServices("test2")]
MyScopedClass scopedService) => _next(context);
}
// </snippet_1>
// </snippet_2>
#endif