Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.PagedList/ServiceCollectionExtensions.cs
/// <summary>
///     Add necessary services to generate bootstrap styled pager.
/// </summary>
/// <param name="services">Service collections.</param>
Add necessary services to generate bootstrap styled pager.
Add necessary services to generate bootstrap styled pager .
public static void AddBootstrapPagerGenerator(this IServiceCollection services)
		{
			services.TryAddTransient<IPagerListGenerator, DefaultPagerListGenerator>();
			services.TryAddTransient<IPagerRenderingListGenerator, DefaultPagerRenderingListGenerator>();
			services.TryAddTransient<IPagerHtmlGenerator, BootstrapPagerHtmlGenerator>();
			services.TryAddTransient<IPagerGenerator, DefaultPagerGenerator>();
		}
public static void AddBootstrapPagerGenerator ( this IServiceCollection services ) { services . TryAddTransient < IPagerListGenerator , DefaultPagerListGenerator > ( ) ; services . TryAddTransient < IPagerRenderingListGenerator , DefaultPagerRenderingListGenerator > ( ) ; services . TryAddTransient < IPagerHtmlGenerator , BootstrapPagerHtmlGenerator > ( ) ; services . TryAddTransient < IPagerGenerator , DefaultPagerGenerator > ( ) ; }
Add necessary services to generate bootstrap styled pager.
Add necessary services to generate bootstrap styled pager .
// Depended services // Main service
IServiceCollection
this
services
None