Commit 270bdf4c authored by Daniel Roth's avatar Daniel Roth
Browse files

Add missing SubscribeToNotifications method to lab 09

parent b59b614d
......@@ -143,7 +143,11 @@ async Task RequestNotificationSubscriptionAsync()
Also add the `SubscribeToNotifications` method to `OrdersClient`.
```csharp
public async Task SubscribeToNotifications(NotificationSubscription subscription)
{
var response = await httpClient.PostAsJsonAsync("notifications/subscribe", subscription);
response.EnsureSuccessStatusCode();
}
```
You'll also need to inject the `IJSRuntime` service into the `Checkout` component.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment