src/Microsoft/JSInterop/Dynamic/0.Core/src/Interception/ServiceBuilder/DynamicIJSInterceptorServiceCollectionExtensions.cs
/// <summary>
/// Adds the default dynamic-only interceptors.
/// </summary>
/// <param name="interceptorBuilder"></param>
/// <returns></returns>
Adds the default dynamic-only interceptors.
Adds the default dynamic - only interceptors .
public static IJSInterceptorServiceCollection AddDefaultDynamicInterceptors(this IJSInterceptorServiceCollection interceptorBuilder)
        {
            interceptorBuilder.UseExtension(extension => {
                extension.AddScoped<JSDynamicLocalObjectActivatingInterceptor>();
                extension.AddScoped<JSDynamicLocalObjectReturningInterceptor>();
                extension.AddScoped<JSDynamicProxyReturningInterceptor>();
            });
            return interceptorBuilder;
        }
public static IJSInterceptorServiceCollection AddDefaultDynamicInterceptors ( this IJSInterceptorServiceCollection interceptorBuilder ) { interceptorBuilder . UseExtension ( extension => { extension . AddScoped < JSDynamicLocalObjectActivatingInterceptor > ( ) ; extension . AddScoped < JSDynamicLocalObjectReturningInterceptor > ( ) ; extension . AddScoped < JSDynamicProxyReturningInterceptor > ( ) ; } ) ; return interceptorBuilder ; }
Adds the default dynamic-only interceptors.
Adds the default dynamic - only interceptors .
None
IJSInterceptorServiceCollection
this
interceptorBuilder
None