Skip to content

MultiStateTransactionalBitArrayGrain Methods

The abstract base class for all grain classes.

Get

View source
public Task<List<BitArrayState>> Get()
Performs a read transaction on each state, returning the results in order.

OnActivateAsync(CancellationToken)

override
View source
public override Task OnActivateAsync(CancellationToken cancellationToken)
This method is called at the end of the process of activating a grain. It is called before any messages have been dispatched to the grain. For grains with declared persistent state, this method is called after the State property has been populated.

Parameters

cancellationTokenCancellationToken
A cancellation token which signals when activation is being canceled.

SetBit(int)

View source
public Task SetBit(int index)
apply set operation to every transaction state

Parameters

indexint