aries-framework-dotnet
aries-framework-dotnet copied to clipboard
Basic Message
Hello, i have 2 questions for u.
-
how is it possible to have the list of basic message that i sent to other agent ? like the method "ListAsync" in "ProofService", "CredentialService" or "ConnectionService"
-
a little bit similar to the first, how is it possible to have the list of basic message that i received ?
thx for your help.
You can try the below to get the list of BasicMessage
List<BasicMessageRecord> basicMessageRecords = await walletRecordService.SearchAsync<BasicMessageRecord>(AgentContext.Wallet, SearchQuery.Equal(nameof(BasicMessageRecord.ConnectionId), Connection.Record.Id), null, int.MaxValue);