Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fix build errors in WebAgent sample (#147)
Browse files Browse the repository at this point in the history
* Fix build errors in WebAgent sample due to previous MessageTypeHttps PR

Signed-off-by: Ajay Jadhav <jadhavajay@gmail.com>
Signed-off-by: Ajay Jadhav <ajay@ayanworks.com>

Co-authored-by: Ajay Jadhav <ajay@ayanworks.com>
Co-authored-by: Tomislav Markovski <tmarkovski@gmail.com>
  • Loading branch information
3 people committed Dec 15, 2020
1 parent 26f10e1 commit f9eeb64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions samples/aspnetcore/Controllers/ConnectionsController.cs
Expand Up @@ -80,7 +80,7 @@ public async Task<IActionResult> AcceptInvitation(AcceptConnectionViewModel mode

var invite = MessageUtils.DecodeMessageFromUrlFormat<ConnectionInvitationMessage>(model.InvitationDetails);
var (request, record) = await _connectionService.CreateRequestAsync(context, invite);
await _messageService.SendAsync(context.Wallet, request, record);
await _messageService.SendAsync(context, request, record);

return RedirectToAction("Index");
}
Expand Down Expand Up @@ -118,7 +118,7 @@ public async Task<IActionResult> SendTrustPing(string connectionId)
.Where(_ => _.MessageType == CustomMessageTypes.TrustPingResponseMessageType)
.Subscribe(_ => { success = true; slim.Release(); }))
{
await _messageService.SendAsync(context.Wallet, message, connection);
await _messageService.SendAsync(context, message, connection);

await slim.WaitAsync(TimeSpan.FromSeconds(5));

Expand Down Expand Up @@ -177,7 +177,7 @@ public async Task<IActionResult> SendMessage(string connectionId, string text)
await _recordService.AddAsync(context.Wallet, messageRecord);

// Send an agent message using the secure connection
await _messageService.SendAsync(context.Wallet, message, connection);
await _messageService.SendAsync(context, message, connection);

return RedirectToAction("Details", new {id = connectionId});
}
Expand Down
2 changes: 1 addition & 1 deletion samples/aspnetcore/Controllers/CredentialsController.cs
Expand Up @@ -121,7 +121,7 @@ public async Task<IActionResult> IssueCredentials(CredentialOfferModel model)
IssuerDid = issuer.IssuerDid,
CredentialAttributeValues = values
});
await _messageService.SendAsync(context.Wallet, offer, connection);
await _messageService.SendAsync(context, offer, connection);

return RedirectToAction("Index");
}
Expand Down

0 comments on commit f9eeb64

Please sign in to comment.