# TransactionalStateAttributeMapper&lt;TAttribute&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.transactionalstateattributemapper-1/)

## GetFactory(ParameterInfo, TAttribute) {#getfactory-system-reflection-parameterinfo-tattribute-eb3391a0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.transactionalstateattributemapper-1/methods/getfactory-system-reflection-parameterinfo-tattribute-eb3391a0/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/Hosting/TransactionalStateAttributeMapper.cs#L24-L28)

```csharp
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

- `parameter` (`ParameterInfo`): The parameter info.
- `attribute` (`TAttribute`): The metadata.

### Returns

The factory used to create facet instances for a grain.
