MBrace.Core


ResourceRegistry

Namespace: MBrace.Core.Internals

Immutable dependency container used for pushing runtime resources to the continuation monad.

Instance members

Instance memberDescription
Contains()
Signature: unit -> bool
Type parameters: 'TResource

Returns true iff registry instance contains resource of given type.

InstalledResources
Signature: string []

Gets all resources currently registered with factory.

CompiledName: get_InstalledResources

Register(resource)
Signature: resource:'TResource -> ResourceRegistry
Type parameters: 'TResource

Creates a new resource registry by appending provided resource. Any existing resources of the same type will be overwritten.

Remove()
Signature: unit -> ResourceRegistry
Type parameters: 'TResource

Creates a new resource registry by removing resource of given key.

Resolve()
Signature: unit -> 'TResource
Type parameters: 'TResource

Resolves resource of given type.

TryResolve()
Signature: unit -> 'TResource option
Type parameters: 'TResource

Try Resolving resource of given type.

Static members

Static memberDescription
Combine(resources)
Signature: resources:seq<ResourceRegistry> -> ResourceRegistry

Combines two resource registries into one.

Combine(resources1, resources2)
Signature: (resources1:ResourceRegistry * resources2:ResourceRegistry) -> ResourceRegistry

Combines two resource registries into one.

Empty
Signature: ResourceRegistry

Gets the empty resource container.

CompiledName: get_Empty

Fork me on GitHub