src/AspNetCore/src/XperienceStatusCodePagesExtensions.cs
/// <summary> Registers services required for usage of Xperience Status Code Pages. </summary>
Registers services required for usage of Xperience Status Code Pages.
Registers services required for usage of Xperience Status Code Pages .
public static IServiceCollection AddXperienceStatusCodePages( this IServiceCollection services )
        {
            if( services == null )
            {
                throw new ArgumentNullException( nameof( services ) );
            }
            services.TryAddTransient<IStatusCodePageRetriever, StatusCodePageRetriever>();
            services.TryAddTransient<IStatusCodePageUrlRetriever, StatusCodePageUrlRetriever>();
            return services;
        }
public static IServiceCollection AddXperienceStatusCodePages ( this IServiceCollection services ) { if ( services == null ) { throw new ArgumentNullException ( nameof ( services ) ) ; } services . TryAddTransient < IStatusCodePageRetriever , StatusCodePageRetriever > ( ) ; services . TryAddTransient < IStatusCodePageUrlRetriever , StatusCodePageUrlRetriever > ( ) ; return services ; }
Registers services required for usage of Xperience Status Code Pages.
Registers services required for usage of Xperience Status Code Pages .
IServiceCollection
this