Skip to content

IPlacementContext Methods

Provides context for a grain placement operation.

GetCompatibleSilos(PlacementTarget)

abstract
public abstract SiloAddress[] GetCompatibleSilos(PlacementTarget target)
Gets the collection of silos which are compatible with the provided placement target.

Parameters

targetPlacementTarget
A description of the grain being placed as well as contextual information about the request which is triggering placement.

Returns

The collection of silos which are compatible with the provided placement target.

GetCompatibleSilosWithVersions(PlacementTarget)

abstract
public abstract IReadOnlyDictionary<ushort, SiloAddress[]> GetCompatibleSilosWithVersions(PlacementTarget target)
Gets the collection of silos which are compatible with the provided placement target, along with the versions of the grain interface which each server supports.

Parameters

targetPlacementTarget
A description of the grain being placed as well as contextual information about the request which is triggering placement.

Returns

The collection of silos which are compatible with the provided placement target, along with the versions of the grain interface which each server supports.