public async Task WebDeleteUserMarker(IdMessage message) { var state = GetState(ConnectionKind.Web); if (state == null) { _logger.LogWarning($"No state for DeleteUserMarker"); return; } await Clients.Group(state.ArmaChannelName).SendAsync("Callback", "DeleteUserMarker", ToData(message)); }
private static string ToData(IdMessage message) { return(FormattableString.Invariant($"[\"{ArmaSerializer.Escape(message.Id)}\"]")); }