Class ProgramExtensions
Namespace: Identity.API.Extensions
Assembly: Identity.API.dll
Class providing extension methods for Program entry point.
public static class ProgramExtensions
Inheritance
object ← ProgramExtensions
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Methods
ConfigureLayersAndAuthentication\(IServiceCollection, IConfiguration\)
Method that injects all DI of all layers of the app external to API, called by API Program.
public static void ConfigureLayersAndAuthentication(this IServiceCollection services, IConfiguration configuration)
Parameters
services IServiceCollection
Services that will be affected.
configuration IConfiguration
Configuration that will be affected.
ConfigureSwaggerGenerator\(IServiceCollection\)
Swagger settings configurator.
public static void ConfigureSwaggerGenerator(this IServiceCollection services)
Parameters
services IServiceCollection
Service collection of the current application.
Last modified: 21 May 2024