Exemplo n.º 1
0
        public async Task <ConnectorEvent> ChannelEntityDeletedAsync(Entity channel, Entity deletedEntity)
        {
            string         channelName    = _mappingHelper.GetNameForEntity(channel, 100);
            ConnectorEvent connectorEvent = ConnectorEventHelper.InitiateEvent(_config,
                                                                               ConnectorEventType.ChannelEntityDeleted,
                                                                               $"Received entity deleted for entity {deletedEntity.Id} in channel {channelName}.", 0);

            await DeleteAsync(channel, deletedEntity);

            await _epiApi.DeleteCompletedAsync(channelName, DeleteCompletedEventType.EntitiyDeleted);

            return(connectorEvent);
        }