Skip to content

Commit 8070e08

Browse files
authored
Merge pull request #116549 from craigktreasure/craig/fix-accountdomain
Fixed AccountDomain instructions
2 parents 2c4b4e7 + c834536 commit 8070e08

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

articles/spatial-anchors/quickstarts/get-started-hololens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Locate the `SpatialAnchorsAccountKey` field and replace `Set me` with the accoun
4949

5050
Locate the `SpatialAnchorsAccountId` field and replace `Set me` with the account identifier.
5151

52-
Locate `case DemoStep::ConfigSession:` and add the following line, substituting in your account domain from earlier: `configuration.AccountKey("MyAccountDomain");`.
52+
Locate `case DemoStep::ConfigSession:` and add the following line, substituting in your account domain from earlier: `configuration.AccountDomain("MyAccountDomain");`.
5353

5454
## Deploy the app to your HoloLens
5555

articles/spatial-anchors/quickstarts/get-started-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Locate the `SpatialAnchorsAccountKey` field and replace `Set me` with the accoun
107107

108108
Locate the `SpatialAnchorsAccountId` field and replace `Set me` with the account identifier.
109109

110-
Locate `startSession()` and add the following line, substituting in your account domain from earlier: `_cloudSession.configuration.accountKey = @"MyAccountDomain";`.
110+
Locate `startSession()` and add the following line, substituting in your account domain from earlier: `_cloudSession.configuration.accountDomain = @"MyAccountDomain";`.
111111

112112
---
113113

articles/spatial-anchors/quickstarts/get-started-xamarin-android.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ Locate the `SpatialAnchorsAccountKey` field and replace `Set me` with the accoun
5959

6060
Locate the `SpatialAnchorsAccountId` field and replace `Set me` with the account identifier.
6161

62-
Locate `AzureSpatialAnchorsManager(Session arCoreSession)` and add the following line, substituting in your account domain from earlier: `this.spatialAnchorsSession.Configuration.AccountId = "MyAccountDomain";`.
62+
Open `Xamarin/SampleXamarin.Android/AzureSpatialAnchorsManager.cs`.
63+
64+
Locate `AzureSpatialAnchorsManager(Session arCoreSession)` and add the following line, substituting in your account domain from earlier: `this.spatialAnchorsSession.Configuration.AccountDomain = "MyAccountDomain";`.
6365

6466
## Deploy the app to your Android device
6567

articles/spatial-anchors/quickstarts/get-started-xamarin-ios.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ Locate the `SpatialAnchorsAccountKey` field and replace `Set me` with the accoun
5151

5252
Locate the `SpatialAnchorsAccountId` field and replace `Set me` with the account identifier.
5353

54-
Locate `StartSession()` and add the following line, substituting in your account domain from earlier: `this.cloudSession.Configuration.AccountKey = "MyAccountDomain";`.
54+
Open `Xamarin/SampleXamarin.iOS/ViewControllers/DemoViewControllerBase.cs`
55+
56+
Locate `StartSession()` and add the following line, substituting in your account domain from earlier: `this.cloudSession.Configuration.AccountDomain = "MyAccountDomain";`.
5557

5658
## Deploy the app to your iOS device
5759

includes/spatial-anchors-unity-configure-scene.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ The next step is to configure the app to use your account identifier and account
99

1010
In the **Project** pane, navigate to `Assets\AzureSpatialAnchors.SDK\Resources`. Select `SpatialAnchorConfig`. Then, in the **Inspector** pane, enter the `Account Key` as the value for `Spatial Anchors Account Key` and the `Account ID` as the value for `Spatial Anchors Account Id`.
1111

12-
Next, open up `SpatialAnchorManager.cs`. Find `CreateSessionAsync()` and add the following line, substituting in your account domain from earlier: `session.Configuration.AccountId = "MyAccountDomain";`. You can add this line directly before this comment `// Configure authentication`.
12+
Next, open up `SpatialAnchorManager.cs`. Find `CreateSessionAsync()` and add the following line, substituting in your account domain from earlier: `session.Configuration.AccountDomain = "MyAccountDomain";`. You can add this line directly before this comment `// Configure authentication`.

0 commit comments

Comments
 (0)