Class AppBuilderExtensions
Namespace: Restaurant.API.Extensions
Assembly: Restaurant.API.dll
Application builder extension to define behaviors on run time.
public static class AppBuilderExtensions
Inheritance
object ← AppBuilderExtensions
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Methods
ConfigureEnvironmentServices\(IApplicationBuilder\)
Determine the behavior to apply depending on the running environment.
public static void ConfigureEnvironmentServices(this IApplicationBuilder app)
Parameters
Application builder of the app.
Exceptions
Returned when the running environment is unknown.
ConfigureSelfSignedSsl\(WebApplicationBuilder\)
Configure Restaurant to use a self-signed SSL certificate.
public static void ConfigureSelfSignedSsl(this WebApplicationBuilder app)
Parameters
The webapp builder of the microservice.
MapGrpcEndpoints\(IApplicationBuilder\)
Map GRPC Service endpoints.
public static void MapGrpcEndpoints(this IApplicationBuilder app)
Parameters
Last modified: 21 May 2024