navigation

Application

Namespace: Saturn
Parent: Saturn

Module containing application computation expression


Declared Types
Type Description
ApplicationBuilder

Computation expression used to configure Saturn application. Under the hood it's using ASP.NET application configurations interfaces such as IWebHostBuilder, IServiceCollection, IApplicationBuilder and others. It aims to hide cumbersome ASP.NET application configuration and enable high level, declarative application configuration using feature toggles.

Example:

let app = application {
    pipe_through endpointPipe
    use_router topRouter
    url "http://0.0.0.0:8085/"
    memory_cache
    use_static "static"
    use_gzip
}
val app : obj
ApplicationState

Type representing internal state of the application computation expression


Declared Modules
Module Description
Config

Helpers for getting configuration

Environment

Helpers for getting environment info


Values and Functions
Name Description
parseAndValidateOauthTicket(ctx)
Signature: ctx:OAuthCreatingTicketContext -> Task

generic oauth parse and validate logic, shared with the auth extensions package

application
Signature: ApplicationBuilder

Computation expression used to configure Saturn application

run(app)
Signature: app:IHostBuilder -> unit

Runs Saturn application