Skip to content

Commit 307e49d

Browse files
committed
Use TryAddScoped instead of AddScoped
1 parent ed81b3d commit 307e49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/WebAssembly/Server/src/WebAssemblyRazorComponentsBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static IRazorComponentsBuilder AddInteractiveWebAssemblyComponents(this I
3232

3333
if (lazyAssemblyLoaderType != null)
3434
{
35-
builder.Services.AddScoped(lazyAssemblyLoaderType);
35+
builder.Services.TryAddScoped(lazyAssemblyLoaderType);
3636
}
3737

3838
return builder;

0 commit comments

Comments
 (0)