Skip to content

Commit 5083113

Browse files
authored
Update migration-guide.md
1 parent 2f7e589 commit 5083113

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/connections/sources/catalog/libraries/server/csharp/migration-guide.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,17 @@ You can update to Analytics-CSharp in 3 steps:
4848

4949
3. *(Optional)* Update calls that resets the anonymous ID.
5050

51-
The old SDK requires you to provide the anonymous ID. In the new SDK, it generates an Anonymous ID for you if you never call `analytics.Identify`. If you call `Identify` and want to go back to anonymous, the new SDK provides a `Reset` function to achieve that.
51+
The old SDK requires you to provide the anonymous ID. The new SDK generates an Anonymous ID for you if you never call `analytics.Identify`. If you call `Identify` and want to go back to anonymous, the new SDK provides a `Reset` function to achieve that.
5252

5353
<br> Before:
54+
5455
```c#
5556
Analytics.Client.Page(null, "Login", new Properties(), new Options()
5657
.SetAnonymousId("some-id"));
5758
```
5859

5960
<br> After:
61+
6062
```c#
6163
analytics.Reset();
6264
```
@@ -66,13 +68,15 @@ The old SDK requires you to provide the anonymous ID. In the new SDK, it generat
6668
Change your development settings if you would like to make analytics run synchronously for testing purposes.
6769

6870
<br> Before:
71+
6972
```c#
7073
Analytics.Initialize("YOUR_WRITE_KEY", new Config().SetAsync(false));
7174
```
7275

7376
<br> After:
77+
7478
```c#
7579
var configuration = new Configuration("YOUR WRITE KEY",
7680
useSynchronizeDispatcher: true);
7781
var analytics = new Analytics(configuration);
78-
```
82+
```

0 commit comments

Comments
 (0)