ServiceCollectionExtensions Class¶
Methods¶
-
ConfigureRazorViewEngine
(IServiceCollection, System.Action<Microsoft.AspNet.Mvc.Razor.RazorViewEngineOptions>)¶ Configures a set of [Microsoft.AspNet.Mvc.Razor.RazorViewEngineOptions](Microsoft.AspNet.Mvc.Razor.RazorViewEngineOptions.yml) for the application.
Arguments: - services (IServiceCollection) – The services available in the application.
- setupAction (System.Action{Microsoft.AspNet.Mvc.Razor.RazorViewEngineOptions}) – An action to configure the [Microsoft.AspNet.Mvc.Razor.RazorViewEngineOptions](Microsoft.AspNet.Mvc.Razor.RazorViewEngineOptions.yml).
public static void ConfigureRazorViewEngine(IServiceCollection services, Action<RazorViewEngineOptions> setupAction)
-
Microsoft.Framework.DependencyInjection.ServiceCollectionExtensions.InitializeTagHelper<TTagHelper>(IServiceCollection, System.Action<TTagHelper, Microsoft.AspNet.Mvc.ViewContext>)
Adds an initialization callback for a given <typeparamref name=”TTagHelper” />.
Arguments: - services (IServiceCollection) – The @!:IServiceCollection- instance this method extends.
- initialize (System.Action{{TTagHelper},Microsoft.AspNet.Mvc.ViewContext}) – An action to initialize the <typeparamref name=”TTagHelper” />.
Return type: IServiceCollection
Returns: The @!:IServiceCollection- instance this method extends.
public static IServiceCollection InitializeTagHelper<TTagHelper>(IServiceCollection services, Action<TTagHelper, ViewContext> initialize)where TTagHelper : ITagHelper
-