コード例 #1
0
 protected override bool ExecuteRemovePendingRequest(Party requestorParty)
 {
     return(AzureStorageHelper.DeleteEntryAsync <PartyEntity>(
                _pendingRequestsTable,
                PartyEntity.CreatePartitionKey(requestorParty, PartyEntityType.PendingRequest),
                PartyEntity.CreateRowKey(requestorParty)).Result);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 protected override bool ExecuteRemoveAggregationParty(Party aggregationPartyToRemove)
 {
     return(AzureStorageHelper.DeleteEntryAsync <PartyEntity>(
                _aggregationPartiesTable,
                PartyEntity.CreatePartitionKey(aggregationPartyToRemove, PartyEntityType.Aggregation),
                PartyEntity.CreateRowKey(aggregationPartyToRemove)).Result);
 }
        protected override bool ExecuteRemoveAggregationParty(Party aggregationPartyToRemove)
        {
            var partyEntitiesToRemove = GetPartyEntitiesByPropertyNameAndValue(
                PartitionKey,
                PartyEntity.CreatePartitionKey(aggregationPartyToRemove, PartyEntityType.Aggregation))
                                        .FirstOrDefault();

            return(AzureStorageHelper.DeleteEntry <PartyEntity>(
                       _partiesTable, partyEntitiesToRemove.PartitionKey, partyEntitiesToRemove.RowKey));
        }