src/Microsoft/JSInterop/0/src/CustomFacadeIServiceCollectionExtensions.cs
/// <summary>
/// Tries to configure options for <see cref="JSFacadeHubActivatorInterceptorServicesOptions"/>.
/// Tries to add <see cref="JSCustomFacadeActivator"/> as <see cref="IJSCustomFacadeActivator"/>.
/// </summary>
/// <param name="services"></param>
/// <param name="configureOptions"></param>
/// <param name="configureValueAssignerServicesOptions"></param>
/// <param name="configureInterceptorServicesOptions"></param>
/// <param name="postConfigureInterceptorServicesOptions"></param>
/// <returns></returns>
Tries to configure options for .
Tries to add  as .
Tries to configure options for . Tries to add as .
public static IServiceCollection AddJSCustomFacadeActivator(
            this IServiceCollection services,
            Action<JSCustomFacadeActivatorOptions>? configureOptions = null,
            Action<JSFacadeHubActivatorValueAssignerServicesOptions>? configureValueAssignerServicesOptions = null,
            Action<JSFacadeHubActivatorInterceptorServicesOptions>? configureInterceptorServicesOptions = null,
            PostConfigureInterceptorServicesOptionsDelegate<JSFacadeHubActivatorInterceptorServicesOptions, JSFacadeHubActivatorValueAssignerServicesOptions>? postConfigureInterceptorServicesOptions = null)
        {
            if (!(configureOptions is null)) {
                services.Configure(configureOptions);
            }
            services.ConfigureInterceptorServicesOptions(configureValueAssignerServicesOptions, configureInterceptorServicesOptions, postConfigureInterceptorServicesOptions);
            services.TryAddSingleton<IJSCustomFacadeActivator, JSCustomFacadeActivator>();
            return services;
        }
public static IServiceCollection AddJSCustomFacadeActivator ( this IServiceCollection services , Action < JSCustomFacadeActivatorOptions > ? configureOptions = null , Action < JSFacadeHubActivatorValueAssignerServicesOptions > ? configureValueAssignerServicesOptions = null , Action < JSFacadeHubActivatorInterceptorServicesOptions > ? configureInterceptorServicesOptions = null , PostConfigureInterceptorServicesOptionsDelegate < JSFacadeHubActivatorInterceptorServicesOptions , JSFacadeHubActivatorValueAssignerServicesOptions > ? postConfigureInterceptorServicesOptions = null ) { if ( ! ( configureOptions is null ) ) { services . Configure ( configureOptions ) ; } services . ConfigureInterceptorServicesOptions ( configureValueAssignerServicesOptions , configureInterceptorServicesOptions , postConfigureInterceptorServicesOptions ) ; services . TryAddSingleton < IJSCustomFacadeActivator , JSCustomFacadeActivator > ( ) ; return services ; }
Tries to configure options for .
Tries to configure options for .
None
IServiceCollection
this
configureOptions
Action<JSCustomFacadeActivatorOptions>?
None
configureValueAssignerServicesOptions
Action<JSFacadeHubActivatorValueAssignerServicesOptions>?
None
configureInterceptorServicesOptions
Action<JSFacadeHubActivatorInterceptorServicesOptions>?
None
postConfigureInterceptorServicesOptions
PostConfigureInterceptorServicesOptionsDelegate<JSFacadeHubActivatorInterceptorServicesOptions, JSFacadeHubActivatorValueAssignerServicesOptions>?
None
services
None