protected override bool ExecuteAddConnection(Party conversationOwnerParty, Party conversationClientParty)
 {
     return(AzureStorageHelper.Insert <ConnectionEntity>(_connectionsTable, new ConnectionEntity()
     {
         PartitionKey = conversationClientParty.ConversationAccount.Id,
         RowKey = conversationOwnerParty.ConversationAccount.Id,
         Client = JsonConvert.SerializeObject(new PartyEntity(conversationClientParty, PartyEntityType.Client)),
         Owner = JsonConvert.SerializeObject(new PartyEntity(conversationOwnerParty, PartyEntityType.Owner))
     }));
 }
 protected override bool ExecuteAddAggregationParty(Party aggregationPartyToAdd)
 {
     return(AzureStorageHelper.Insert <PartyEntity>(
                _partiesTable, new PartyEntity(aggregationPartyToAdd, PartyEntityType.Aggregation)));
 }
 protected override bool ExecuteAddPendingRequest(Party requestorParty)
 {
     return(AzureStorageHelper.Insert <PartyEntity>(
                _partiesTable, new PartyEntity(requestorParty, PartyEntityType.PendingRequest)));
 }
 protected override bool ExecuteAddParty(Party partyToAdd, bool isUser)
 {
     return(AzureStorageHelper.Insert <PartyEntity>(
                _partiesTable,
                new PartyEntity(partyToAdd, isUser ? PartyEntityType.User : PartyEntityType.Bot)));
 }