Skip to content

GrainPropertiesResolver Methods

Responsible for resolving GrainProperties for GrainType values.

GetGrainProperties(GrainType)

View source
public GrainProperties GetGrainProperties(GrainType grainType)
Gets the grain properties for the provided type.

Parameters

grainTypeGrainType
The grain type.

Returns

The grain properties.

TryGetGrainProperties(GrainType, GrainProperties?)

View source
public bool TryGetGrainProperties(GrainType grainType, out GrainProperties? properties)
Gets the grain properties for the provided type.

Parameters

grainTypeGrainType
The grain type.
propertiesGrainProperties?
The grain properties.

Returns

A value indicating whether grain properties could be found for the provided grain type.