protected override bool ExecuteRemoveAggregationParty(Party aggregationPartyToRemove) { return(AzureStorageHelper.DeleteEntryAsync <PartyEntity>( _aggregationPartiesTable, PartyEntity.CreatePartitionKey(aggregationPartyToRemove, PartyEntityType.Aggregation), PartyEntity.CreateRowKey(aggregationPartyToRemove)).Result); }
protected override bool ExecuteRemovePendingRequest(Party requestorParty) { return(AzureStorageHelper.DeleteEntryAsync <PartyEntity>( _pendingRequestsTable, PartyEntity.CreatePartitionKey(requestorParty, PartyEntityType.PendingRequest), PartyEntity.CreateRowKey(requestorParty)).Result); }
protected override bool ExecuteRemoveParty(Party partyToRemove, bool isUser) { return(AzureStorageHelper.DeleteEntryAsync <PartyEntity>( isUser ? _userPartiesTable : _botPartiesTable, PartyEntity.CreatePartitionKey(partyToRemove, isUser ? PartyEntityType.User : PartyEntityType.Bot), PartyEntity.CreateRowKey(partyToRemove)).Result); }