Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
s8_ivanov_r
VPL-pizza-shop-blazor
Commits
270bdf4c
Commit
270bdf4c
authored
May 25, 2020
by
Daniel Roth
Browse files
Add missing SubscribeToNotifications method to lab 09
parent
b59b614d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
docs/09-progressive-web-app.md
docs/09-progressive-web-app.md
+5
-1
No files found.
docs/09-progressive-web-app.md
View file @
270bdf4c
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment