public async Task <bool> InsertRow(MembershipEntry entry, TableVersion tableVersion) { try { var tableEntry = ConvertEntry(entry); var key = CreateSiloKey(tableEntry.DeploymentId, tableEntry.SiloIdentity); await _firebaseClient.PutAsync(ConstructMembershipPath(key), tableEntry); return(true); } catch (Exception) { return(false); } }
public async Task WriteStateAsync(string grainType, GrainReference grainReference, IGrainState grainState) { await _firebaseClient.PutAsync(ConstructGrainPath(grainType, grainReference), grainState.State); }