-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README.md - Add missing awaits (#137)
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ before using production environment, to avoid hitting the | |
Creating new ACME account: | ||
```C# | ||
var acme = new AcmeContext(WellKnownServers.LetsEncryptStagingV2); | ||
var account = acme.NewAccount("[email protected]", true); | ||
var account = await acme.NewAccount("[email protected]", true); | ||
|
||
// Save the account key for later use | ||
var pemKey = acme.AccountKey.ToPem(); | ||
|
@@ -37,7 +37,7 @@ Use an existing ACME account: | |
// Load the saved account key | ||
var accountKey = KeyFactory.FromPem(pemKey); | ||
var acme = new AcmeContext(WellKnownServers.LetsEncryptStagingV2, accountKey); | ||
var account = acme.Account(); | ||
var account = await acme.Account(); | ||
``` | ||
|
||
See [API doc](APIv2.md#acounts) for additional operations. | ||
|