Class ServiceCollectionExtensions
Extension methods for the Microsoft.Extensions.DependencyInjection.IServiceCollection interface.
Inheritance
Namespace: Cuemon.AspNetCore.Mvc.DependencyInjection
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public static class ServiceCollectionExtensions
Methods
| Improve this DocAddCacheBusting(IServiceCollection)
Adds a cache-busting service to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection based on a default instance of AssemblyCacheBusting.
Declaration
public static IServiceCollection AddCacheBusting(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | An Microsoft.Extensions.DependencyInjection.IServiceCollection that can be used to further configure other services. |
AddCacheBusting<T>(IServiceCollection)
Adds a cache-busting service to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.
Declaration
public static IServiceCollection AddCacheBusting<T>(this IServiceCollection services)
where T : CacheBusting
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | An Microsoft.Extensions.DependencyInjection.IServiceCollection that can be used to further configure other services. |
Type Parameters
Name | Description |
---|---|
T |