Logo Orsak

GenRunnerAttribute Type

Generates a runner for an interface that inherits IProvide for each effect it provides: a record type implementing the provider interfaces of those effects, and a runner computation expression that assembles an environment from them.

Example

 [<GenRunner(Name = "AppRunner")>]
 type IAppRunner =
     inherit IProvide<IGuidGenerator>
     inherit IProvide<TimeProvider>
type IAppRunner = inherit obj inherit obj

Constructors

Constructor Description

GenRunnerAttribute()

Full Usage: GenRunnerAttribute()

Returns: GenRunnerAttribute

Instance members

Instance member Description

this.Name

Full Usage: this.Name

Returns: string

The name of the generated runner type.

Returns: string

this.UserInterfaceName

Full Usage: this.UserInterfaceName

Returns: bool

Names the generated runner type after the interface, without its leading I, instead of Name.

Returns: bool

Type something to start searching.