Class ProgramExtensions
Namespace: Restaurant.API.Extensions
Assembly: Restaurant.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
ConfigureLayers\(IServiceCollection, IConfiguration\)
Configure Restaurant.Infrastructure and System.Net.Mime.MediaTypeNames.Application layers.
public static void ConfigureLayers(this IServiceCollection services, IConfiguration configuration)
Parameters
services IServiceCollection
configuration IConfiguration
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