Context

This module tracks the context of the build. This allows us to run some modules without any context and change behavior depending on the context (For example Fake.Process kills all processes when the Fake Context exists, but it should not when used as library)

Nested types and modules

Functions and values

Function or valueDescription
fakeVar name
Signature: name:string -> (unit -> 'a option) * (unit -> unit) * ('a -> unit)
Type parameters: 'a
fakeVarAllowNoContext name
Signature: name:string -> (unit -> 'a option) * (unit -> unit) * ('a -> unit)
Type parameters: 'a
forceFakeContext ()
Signature: unit -> FakeExecutionContext
getExecutionContext ()
Signature: unit -> RuntimeContext
getFakeContext name f
Signature: name:string -> f:FakeExecutionContext -> obj option
getFakeExecutionContext e
Signature: e:RuntimeContext -> FakeExecutionContext option
getFakeVar name
Signature: name:string -> 'a option
Type parameters: 'a
isFakeContext ()
Signature: unit -> bool
removeFakeContext name f
Signature: name:string -> f:FakeExecutionContext -> obj option
removeFakeVar name
Signature: name:string -> 'a option
Type parameters: 'a
setExecutionContext e
Signature: e:RuntimeContext -> unit
setFakeContext name v updateF f
Signature: name:string -> v:obj -> updateF:(obj -> obj) -> f:FakeExecutionContext -> obj
setFakeVar name v
Signature: name:string -> v:'a -> 'a
Type parameters: 'a