AddFaultDescriptorOptions Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Diagnostics
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
AddFaultDescriptorOptions(IServiceCollection, Action<FaultDescriptorOptions>)
Registers the specified setup to configure FaultDescriptorOptions in the services collection.
public static IServiceCollection AddFaultDescriptorOptions(this IServiceCollection services, Action<FaultDescriptorOptions> setup = null)
Parameters
servicesIServiceCollectionThe IServiceCollection to extend.
setupAction<FaultDescriptorOptions>The FaultDescriptorOptions that may be configured.
Returns
- IServiceCollection
A reference to
servicesso that additional configuration calls can be chained.
Exceptions
- ArgumentException
setupfailed to configure an instance of FaultDescriptorOptions in a valid state.