For new API support, existing implementation of getting single credential record for a given credentialId is as shown below.
Existing implementation:
{
}
There already exists a method which directly fetches the single record for a given credentialId. Can we not use GetAsync() method instead of ListAsync() method?
Proposed implementation:
{
IAgentContext agentContext = await AgentProvider.GetContextAsync();
CredentialRecord credentialRecord = await CredentialService.GetAsync(agentContext, aGetCredentialRequest.CredentialId);
var response = new GetCredentialResponse(aGetCredentialRequest.CorrelationId, credentialRecord);
return response;
@tmarkovski @StevenTCramer
For new API support, existing implementation of getting single credential record for a given credentialId is as shown below. Existing implementation: {
} There already exists a method which directly fetches the single record for a given credentialId. Can we not use GetAsync() method instead of ListAsync() method?
Proposed implementation: {
} I have implemented and tested it. Below is the link for the above changes. Kindly verify and assist so that we can merge this change if required and valid. https://github.com/RinkalBhojani/aries-framework-dotnet/commit/c8446eb3add2e9e6974d72c59f1404fb3d9782b2