hyperledger-archives / aries-framework-dotnet

Aries Framework .NET for building multiplatform SSI services
https://wiki.hyperledger.org/display/aries
Apache License 2.0
84 stars 74 forks source link

Basic Message #188

Open natinas opened 3 years ago

natinas commented 3 years ago

Hello, i have 2 questions for u.

1) 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"

2) 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.

sahil-khanna commented 3 years ago

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);