Exemple #1
0
        private async Task UpdateMapLayer(MapLayerUpdateData data)
        {
            switch (data.Type)
            {
            case MapLayerUpdateType.Update:
                await _mapData.UpdateLayer(data.WorkspaceId, data.MapLayerId);

                break;

            case MapLayerUpdateType.Delete:
                await _mapData.DeleteLayer(data.WorkspaceId, data.MapLayerId);

                break;
            }
        }
Exemple #2
0
        public async Task <IActionResult> Invoke()
        {
            await _statusTable.RemoveStatus(WorkspaceId, LayerId);

            await _mapData.DeleteLayer(WorkspaceId, LayerId);

            await _topicClient.SendMessage(new MapLayerUpdateData()
            {
                MapLayerId  = LayerId,
                WorkspaceId = WorkspaceId,
                Type        = MapLayerUpdateType.Delete
            });

            return(NoContent());
        }