src/Microsoft/JSInterop/0/src/LocalityIServiceCollectionExtensions.cs
/// <summary>
/// Tries to configure options for <see cref="JSLocalObjectInterceptorServicesOptions"/>.
/// Tries to add <see cref="JSLocalObjectActivator"/> as <see cref="IJSLocalObjectActivator"/>.
/// </summary>
/// <param name="services"></param>
/// <param name="configureInterceptorServicesOptions"></param>
/// <param name="configureValueAssignerServicesOptions"></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 AddJSLocalObjectActivator(
            this IServiceCollection services, 
            Action<JSLocalObjectValueAssignerServicesOptions>? configureValueAssignerServicesOptions = null,
            Action<JSLocalObjectInterceptorServicesOptions>? configureInterceptorServicesOptions = null,
            PostConfigureInterceptorServicesOptionsDelegate<JSLocalObjectInterceptorServicesOptions, JSLocalObjectValueAssignerServicesOptions>? postConfigureInterceptorServicesOptions = null)
        {
            services.AddInterceptorServicesOptions<JSLocalObjectInterceptorServicesOptions, JSLocalObjectValueAssignerServicesOptions>();
            services.ConfigureInterceptorServicesOptions(configureValueAssignerServicesOptions, configureInterceptorServicesOptions, postConfigureInterceptorServicesOptions);
            services.TryAddSingleton<IJSLocalObjectActivator, JSLocalObjectActivator>();
            return services;
        }
public static IServiceCollection AddJSLocalObjectActivator ( this IServiceCollection services , Action < JSLocalObjectValueAssignerServicesOptions > ? configureValueAssignerServicesOptions = null , Action < JSLocalObjectInterceptorServicesOptions > ? configureInterceptorServicesOptions = null , PostConfigureInterceptorServicesOptionsDelegate < JSLocalObjectInterceptorServicesOptions , JSLocalObjectValueAssignerServicesOptions > ? postConfigureInterceptorServicesOptions = null ) { services . AddInterceptorServicesOptions < JSLocalObjectInterceptorServicesOptions , JSLocalObjectValueAssignerServicesOptions > ( ) ; services . ConfigureInterceptorServicesOptions ( configureValueAssignerServicesOptions , configureInterceptorServicesOptions , postConfigureInterceptorServicesOptions ) ; services . TryAddSingleton < IJSLocalObjectActivator , JSLocalObjectActivator > ( ) ; return services ; }
Tries to configure options for .
Tries to configure options for .
None
IServiceCollection
this
configureValueAssignerServicesOptions
Action<JSLocalObjectValueAssignerServicesOptions>?
None
configureInterceptorServicesOptions
Action<JSLocalObjectInterceptorServicesOptions>?
None
postConfigureInterceptorServicesOptions
PostConfigureInterceptorServicesOptionsDelegate<JSLocalObjectInterceptorServicesOptions, JSLocalObjectValueAssignerServicesOptions>?
None
services
None