# Microsoft.Extensions.DependencyInjection

``` diff
 namespace Microsoft.Extensions.DependencyInjection {
     public static class AuthenticationServiceCollectionExtensions {
-        [RequiresUnreferencedCodeAttribute("Authentication middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")]
-        public static AuthenticationBuilder AddAuthentication(this IServiceCollection services);
+        public static AuthenticationBuilder AddAuthentication(this IServiceCollection services);
-        [RequiresUnreferencedCodeAttribute("Authentication middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")]
-        public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, Action<AuthenticationOptions> configureOptions);
+        public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, Action<AuthenticationOptions> configureOptions);
-        [RequiresUnreferencedCodeAttribute("Authentication middleware does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")]
-        public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, string defaultScheme);
+        public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, string defaultScheme);
     }
     public static class ExceptionHandlerServiceCollectionExtensions {
+        public static IServiceCollection AddExceptionHandler<T>(this IServiceCollection services) where T : class, IExceptionHandler;
     }
+    public static class RazorComponentsBuilderExtensions {
+        [RequiresUnreferencedCodeAttribute("Server-side Blazor does not currently support native AOT.", Url="https://aka.ms/aspnet/nativeaot")]
+        public static IRazorComponentsBuilder AddServerComponents(this IRazorComponentsBuilder builder, Action<CircuitOptions>? configure = null);
+    }
 }
```

