Skip to content

TransactionalStateAttributeMapper<TAttribute> Methods

Maps transactional state facet attributes to transactional state instances.

AttributeToConfig(TAttribute)

abstract
protected abstract TransactionalStateConfiguration AttributeToConfig(TAttribute attribute)
Creates transactional state configuration from a facet attribute.

Parameters

attributeTAttribute
The transactional state facet attribute.

Returns

The transactional state configuration.

GetFactory(ParameterInfo, TAttribute)

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

Parameters

parameterParameterInfo
The parameter info.
attributeTAttribute
The metadata.

Returns

The factory used to create facet instances for a grain.