Skip to content

IStorageHasherPicker Methods

A picker to choose from provided hash functions. Provides agility to update or change hashing functionality for both built-in and custom operations.

PickHasher(string, string, string, GrainId, IGrainState<T>, string)

abstract
public abstract IHasher PickHasher<T>(string serviceId, string storageProviderInstanceName, string grainType, GrainId grainId, IGrainState<T> grainState, string tag = null)
Picks a hasher using the given parameters.

Parameters

serviceIdstring
The ID of the current service.
storageProviderInstanceNamestring
The requesting storage provider.
grainTypestring
The type of grain.
grainIdGrainId
The grain ID.
grainStateIGrainState<T>
The grain state.
tagstring
An optional tag parameter that might be used by the storage parameter for "out-of-band" contracts.

Returns

A serializer or null if not match was found.