Edit

Share via


IAttributeToFactoryMapper<TMetadata>.GetFactory Method

Definition

Responsible for mapping a facet metadata to a cachable factory from the parameter and facet metadata.

public Orleans.Factory<Orleans.Runtime.IGrainActivationContext,object> GetFactory (System.Reflection.ParameterInfo parameter, TMetadata metadata);
public Orleans.Factory<Orleans.Runtime.IGrainContext,object> GetFactory (System.Reflection.ParameterInfo parameter, TMetadata metadata);
abstract member GetFactory : System.Reflection.ParameterInfo * 'Metadata -> Orleans.Factory<Orleans.Runtime.IGrainActivationContext, obj>
abstract member GetFactory : System.Reflection.ParameterInfo * 'Metadata -> Orleans.Factory<Orleans.Runtime.IGrainContext, obj>
Public Function GetFactory (parameter As ParameterInfo, metadata As TMetadata) As Factory(Of IGrainActivationContext, Object)
Public Function GetFactory (parameter As ParameterInfo, metadata As TMetadata) As Factory(Of IGrainContext, Object)

Parameters

parameter
ParameterInfo

The parameter info.

metadata
TMetadata

The metadata.

Returns

The factory used to create facet instances for a grain.

Applies to