MvcCoreServiceCollectionExtensions Class

Syntax

public class MvcCoreServiceCollectionExtensions

GitHub

View on GitHub

class Microsoft.Framework.DependencyInjection.MvcCoreServiceCollectionExtensions

Methods

AddMinimalMvc(IServiceCollection)
Arguments:
  • services (IServiceCollection) –
Return type:

IServiceCollection

public static IServiceCollection AddMinimalMvc(IServiceCollection services)
ConfigureMvc(IServiceCollection, System.Action<Microsoft.AspNet.Mvc.MvcOptions>)

Configures a set of [Microsoft.AspNet.Mvc.MvcOptions](Microsoft.AspNet.Mvc.MvcOptions.yml) for the application.

Arguments:
  • services (IServiceCollection) – The services available in the application.
  • setupAction (System.Action{Microsoft.AspNet.Mvc.MvcOptions}) – The [Microsoft.AspNet.Mvc.MvcOptions](Microsoft.AspNet.Mvc.MvcOptions.yml) which need to be configured.
public static void ConfigureMvc(IServiceCollection services, Action<MvcOptions> setupAction)