Redigera

Dela via


IStorageSerializationPicker.PickSerializer Method

Definition

Picks a serializer using the given parameters.

public Orleans.Storage.SerializationChoice PickSerializer (string serviceId, string storageProviderInstanceName, string grainType, Orleans.Runtime.GrainReference grainReference, Orleans.IGrainState grainState, string tag = default);
abstract member PickSerializer : string * string * string * Orleans.Runtime.GrainReference * Orleans.IGrainState * string -> Orleans.Storage.SerializationChoice
Public Function PickSerializer (serviceId As String, storageProviderInstanceName As String, grainType As String, grainReference As GrainReference, grainState As IGrainState, Optional tag As String = Nothing) As SerializationChoice

Parameters

serviceId
String

The ID of the current service.

storageProviderInstanceName
String

The requesting storage provider.

grainType
String

The type of grain.

grainReference
GrainReference

The grain reference.

grainState
IGrainState

The grain state.

tag
String

An optional tag parameter that might be used by the storage parameter for "out-of-band" contracts.

Returns

A deserializer or null if not match was found.

Applies to