src/Microsoft/JSInterop/0.Core/src/Interception/ServiceBuilder/IJSInterceptorServiceCollectionExtensions.cs
/// <summary>
/// Adds the default non-dynamic interceptors.
/// </summary>
/// <param name="interceptorBuilder"></param>
/// <returns></returns>
Adds the default non-dynamic interceptors.
Adds the default non - dynamic interceptors .
public static IJSInterceptorServiceCollection AddDefaultNonDynamicInterceptors(this IJSInterceptorServiceCollection interceptorBuilder)
        {
            interceptorBuilder.UseExtension(extension => {
                extension.AddScoped<JSLocalObjectReturningInterceptor>();
                extension.AddScoped<JSLocalObjectActivatingInterceptor>();
            });
            return interceptorBuilder;
        }
public static IJSInterceptorServiceCollection AddDefaultNonDynamicInterceptors ( this IJSInterceptorServiceCollection interceptorBuilder ) { interceptorBuilder . UseExtension ( extension => { extension . AddScoped < JSLocalObjectReturningInterceptor > ( ) ; extension . AddScoped < JSLocalObjectActivatingInterceptor > ( ) ; } ) ; return interceptorBuilder ; }
Adds the default non-dynamic interceptors.
Adds the default non - dynamic interceptors .
None
IJSInterceptorServiceCollection
this
interceptorBuilder
None