Skip to content

PersistentStateAttributeMapper.GetFactory(ParameterInfo, PersistentStateAttribute)

GetFactory(ParameterInfo, PersistentStateAttribute)

View source
public Factory<IGrainContext, object> GetFactory(ParameterInfo parameter, PersistentStateAttribute attribute)
Responsible for mapping a facet metadata to a cachable factory from the parameter and facet metadata.

Parameters

parameterParameterInfo
The parameter info.
attributePersistentStateAttribute
The metadata.

Returns

The factory used to create facet instances for a grain.