Class ServiceCollectionExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.dll
Extension methods for the IServiceCollection interface.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
Methods
AddApiKeySentinelOptions(IServiceCollection, Action<ApiKeySentinelOptions>)
Adds configuration of ApiKeySentinelOptions for the application.
public static IServiceCollection AddApiKeySentinelOptions(this IServiceCollection services, Action<ApiKeySentinelOptions> setup = null)
Parameters
services
IServiceCollectionThe IServiceCollection to extend.
setup
Action<ApiKeySentinelOptions>The ApiKeySentinelOptions which may be configured.
Returns
- IServiceCollection
A reference to
services
so that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
services
cannot be null.- ArgumentException
setup
failed to configure an instance of ApiKeySentinelOptions in a valid state.
AddUserAgentSentinelOptions(IServiceCollection, Action<UserAgentSentinelOptions>)
Adds configuration of UserAgentSentinelOptions for the application.
public static IServiceCollection AddUserAgentSentinelOptions(this IServiceCollection services, Action<UserAgentSentinelOptions> setup = null)
Parameters
services
IServiceCollectionThe IServiceCollection to extend.
setup
Action<UserAgentSentinelOptions>The UserAgentSentinelOptions which may be configured.
Returns
- IServiceCollection
A reference to
services
so that additional configuration calls can be chained.
Exceptions
- ArgumentNullException
services
cannot be null.- ArgumentException
setup
failed to configure an instance of UserAgentSentinelOptions in a valid state.