

Aviso de fim do suporte: em 20 de maio de 2026, AWS encerrará o suporte para AWS SimSpace Weaver. Depois de 20 de maio de 2026, você não poderá mais acessar o SimSpace Weaver console ou os SimSpace Weaver recursos. Para obter mais informações, consulte [AWS SimSpace Weaver Fim do suporte](https://docs.aws.amazon.com/simspaceweaver/latest/userguide/simspaceweaver-end-of-support.html). 

As traduções são geradas por tradução automática. Em caso de conflito entre o conteúdo da tradução e da versão original em inglês, a versão em inglês prevalecerá.

# AllSubscriptionEvents and OwnershipChanges conter eventos da última chamada
<a name="working-with_app-sdk_misc_events-from-last-call"></a>

Os valores de retorno das chamadas para `Api::AllSubscriptionEvents()` e `Api::OwnershipChanges()` contêm eventos da última chamada, **não da última marcação**. No exemplo a seguir, `secondSubscriptionEvents` e `secondOwnershipChangeList` estão vazios porque suas funções são chamadas imediatamente após as primeiras chamadas.

Se você esperar dez marcações e depois chamar `Api::AllSubscriptionEvents()` e `Api::OwnershipChanges()`, os resultados conterão eventos e alterações das últimas dez marcações (e não da última).

**Example Exemplo**  

```
Result<void> ProcessOwnershipChanges(Transaction& transaction)
{
    WEAVERRUNTIME_TRY(
        Api::SubscriptionChangeList firstSubscriptionEvents,
        Api::AllSubscriptionEvents(transaction));
    WEAVERRUNTIME_TRY(
        Api::OwnershipChangeList firstOwnershipChangeList,
        Api::OwnershipChanges(transaction));
    
    WEAVERRUNTIME_TRY(
        Api::SubscriptionChangeList secondSubscriptionEvents,
        Api::AllSubscriptionEvents(transaction));
    WEAVERRUNTIME_TRY(
        Api::OwnershipChangeList secondOwnershipChangeList,
        Api::OwnershipChanges(transaction));
    
    /**
     * secondSubscriptionEvents and secondOwnershipChangeList are 
     * both empty because there are no changes since the last call.
     */
}
```

**nota**  
A função `AllSubscriptionEvents()` é implementada, mas a função `SubscriptionEvents()` **não está implementada**.