FsFlow.Needs

Describes the capability contract for a single dependency.

Remarks

Named cap-set interfaces inherit this contract once and then expose the dependency through a member such as Clock or Logger. Workflow builders can accept any environment that implements Needs<'dep>, which lets larger runtimes satisfy smaller boundaries.

Examples

type IClock =
     abstract UtcNow : unit -> DateTimeOffset

 type ClockCaps =
     inherit Needs<IClock>
     abstract Clock : IClock