WebAppBuilder Type
Instance members
Instance member | Description | ||
|
|||
Full Usage:
buildWith configureBuilder
Parameters:
WebApplicationBuilder -> 'a
-
The function to apply to the web application builder.
Returns: WebApplication
|
Applies the given function to the web application builder immediately before calling WebApplicationBuilder.Build on it, returning a WebApplication. Any following operations must operate on the built WebApplication, not the WebApplicationBuilder.
ExampleUse this operation to enable easy integration testing. In your Program.fs:
val app: configureBuilder: 'a -> 'b
val configureBuilder: 'a
val ignore: value: 'T -> unit
In your test file:
val task: TaskBuilder
val app: System.IAsyncDisposable
val client: System.IAsyncDisposable
val response: obj
Multiple items
type Async = static member AsBeginEnd: computation: ('Arg -> Async<'T>) -> ('Arg * AsyncCallback * obj -> IAsyncResult) * (IAsyncResult -> 'T) * (IAsyncResult -> unit) static member AwaitEvent: event: IEvent<'Del,'T> * ?cancelAction: (unit -> unit) -> Async<'T> (requires delegate and 'Del :> Delegate) static member AwaitIAsyncResult: iar: IAsyncResult * ?millisecondsTimeout: int -> Async<bool> static member AwaitTask: task: Task<'T> -> Async<'T> + 1 overload static member AwaitWaitHandle: waitHandle: WaitHandle * ?millisecondsTimeout: int -> Async<bool> static member CancelDefaultToken: unit -> unit static member Catch: computation: Async<'T> -> Async<Choice<'T,exn>> static member Choice: computations: Async<'T option> seq -> Async<'T option> static member FromBeginEnd: beginAction: (AsyncCallback * obj -> IAsyncResult) * endAction: (IAsyncResult -> 'T) * ?cancelAction: (unit -> unit) -> Async<'T> + 3 overloads static member FromContinuations: callback: (('T -> unit) * (exn -> unit) * (OperationCanceledException -> unit) -> unit) -> Async<'T> ... -------------------- type Async<'T> static member Async.AwaitTask: task: System.Threading.Tasks.Task -> Async<unit>
static member Async.AwaitTask: task: System.Threading.Tasks.Task<'T> -> Async<'T> static member Async.RunSynchronously: computation: Async<'T> * ?timeout: int * ?cancellationToken: System.Threading.CancellationToken -> 'T
|
||
Full Usage:
builder configureBuilder
Parameters:
WebApplicationBuilder -> 'a
-
The function to apply to the web application builder.
Returns: WebApplicationBuilder
|
Applies the given function to the WebApplicationBuilder being used to build the app. Useful when multiple properties of the builder need to be accessed at once.
Example
val app: obj
|
||
Full Usage:
configuration configureConfiguration
Parameters:
ConfigurationManager -> 'a
-
The function to apply to the app configuration.
Returns: WebApplicationBuilder
|
Applies the given function to the WebApplicationBuilder.Configuration property of the WebApplicationBuilder being used to build the app.
Example
val app: obj
|
||
Full Usage:
configurationValue key ctor
Parameters:
string
-
The key to look up in the app configuration.
ctor : 'Value -> 'ConfiguredValue
-
The constructor to pass the configuration value into.
Returns: WebApplicationBuilder
|
Example
Multiple items
union case SqlCommandTimeout.SqlCommandTimeout: obj -> SqlCommandTimeout -------------------- type SqlCommandTimeout = | SqlCommandTimeout of obj type SqlCommandTimeout = | SqlCommandTimeout of obj
val app: obj
|
||
Full Usage:
configure configureOptions
Parameters:
'TOptions -> 'a
-
The action to apply to the options.
Returns: WebApplicationBuilder
|
Example
val app: obj
|
||
Full Usage:
connectionString name ctor
Parameters:
string
-
The name of the connection string to look up in the ConnectionStrings section of the app configuration.
ctor : string -> 'ConnectionString
-
The constructor to pass the configuration value into.
Returns: WebApplicationBuilder
|
Example
Multiple items
union case SqlDbConnectionString.SqlDbConnectionString: string -> SqlDbConnectionString -------------------- type SqlDbConnectionString = | SqlDbConnectionString of string type SqlDbConnectionString = | SqlDbConnectionString of string
Multiple items
val string: value: 'T -> string -------------------- type string = System.String val app: obj
|
||
|
|||
Full Usage:
fromConfig configure
Parameters:
IConfiguration -> 'ConfiguredValue
Returns: WebApplicationBuilder
|
Adds a singleton service produced by applying the given configure function to the WebApplicationBuilder's WebApplicationBuilder.Configuration property.
Example
val app: obj
|
||
Full Usage:
host configureHost
Parameters:
ConfigureHostBuilder -> 'a
-
The function to apply to the host builder.
Returns: WebApplicationBuilder
|
Applies the given action to the WebApplicationBuilder.Host property of the WebApplicationBuilder being used to build the app.
Example
val app: obj
|
||
Full Usage:
hostedService implementationFactory
Parameters:
IServiceProvider -> 'a
Returns: WebApplicationBuilder
|
Example
val app: obj
|
||
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
jsonFile path
Parameters:
string
-
The path of the JSON configuration file.
Returns: WebApplicationBuilder
|
Adds a required JSON configuration file to the WebApplicationBuilder's WebApplicationBuilder.Configuration.
Example
val app: obj
|
||
Full Usage:
logging configureLogging
Parameters:
ILoggingBuilder -> 'a
-
The function to apply to the logging builder.
Returns: WebApplicationBuilder
|
Applies the given action to the WebApplicationBuilder.Logging property of the WebApplicationBuilder being used to build the app.
Example
val app: obj
|
||
Full Usage:
optionalJsonFile path
Parameters:
string
-
The path of the JSON configuration file.
Returns: WebApplicationBuilder
|
Adds an optional JSON configuration file to the WebApplicationBuilder's WebApplicationBuilder.Configuration.
Example
val app: obj
|
||
Full Usage:
scoped serviceType implementationFactory
Parameters:
Type
-
The type of the service to add.
implementationFactory : IServiceProvider -> 'TImplementation
-
A function that produces the service implementation.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
scoped serviceType implementationType
Parameters:
Type
-
The type of the service to add.
implementationType : Type
-
The type of the service implementation to add.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
scoped serviceType
Parameters:
Type
-
The type of the service to add.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
services configureServices
Parameters:
IServiceCollection -> ConfigurationManager -> 'a
-
The function to apply to the web application builder's service collection.
Returns: WebApplicationBuilder
|
Applies the given action to the WebApplicationBuilder.Services and WebApplicationBuilder.Configuration properties of the WebApplicationBuilder being used to build the app. See also: Priority1.Services
Example
val app: obj
|
||
Full Usage:
singleton implementationInstance
Parameters:
'TService
-
An object to use as the service implementation.
Returns: WebApplicationBuilder
|
Example
val app: obj
|
||
Full Usage:
singleton serviceType implementationInstance
Parameters:
Type
-
The type of the service to add.
implementationInstance : obj
-
An object to use as the service implementation.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
singleton serviceType implementationFactory
Parameters:
Type
-
The type of the service to add.
implementationFactory : IServiceProvider -> 'TImplementation
-
A function that produces the service implementation.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
singleton serviceType implementationType
Parameters:
Type
-
The type of the service to add.
implementationType : Type
-
The type of the service implementation to add.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
singleton serviceType
Parameters:
Type
-
The type of the service to add.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
transient serviceType implementationFactory
Parameters:
Type
-
The type of the service to add.
implementationFactory : IServiceProvider -> 'TImplementation
-
A function that produces the service implementation.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
transient serviceType implementationType
Parameters:
Type
-
The type of the service to add.
implementationType : Type
-
The type of the service implementation to add.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
transient serviceType
Parameters:
Type
-
The type of the service to add.
Returns: WebApplicationBuilder
|
Example
val app: obj
val typeof<'T> : System.Type
|
||
Full Usage:
webApp configureApp
Parameters:
WebApplication -> 'a
-
The function to apply to the built web application.
Returns: WebApplication
|
Example
val app: obj
|
||
Full Usage:
webApp configureApp
Parameters:
WebApplication -> 'a
-
The function to apply to the built web application.
Returns: WebApplication
|
Example
val app: obj
|
||
Full Usage:
webHost configureWebHost
Parameters:
ConfigureWebHostBuilder -> 'a
-
The function to apply to the web host builder.
Returns: WebApplicationBuilder
|
Applies the given action to the WebApplicationBuilder.WebHost property of the WebApplicationBuilder being used to build the app.
Example
val app: obj
|