IAttributeToFactoryMapper<TMetadata>.GetFactory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.