Skip to content

Commit 6e92d6b

Browse files
committed
format edits
1 parent 5083113 commit 6e92d6b

File tree

1 file changed

+23
-27
lines changed

1 file changed

+23
-27
lines changed

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

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You can update to Analytics-CSharp in 3 steps:
1111
3. *(Optional)* Use `Reset` to stay anonymous.
1212

1313

14-
## Start the Migration
14+
## Migration steps
1515

1616
1. Add the Analytics-CSharp dependency to your project.
1717

@@ -48,35 +48,31 @@ 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. 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.
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

53-
<br> Before:
54-
55-
```c#
56-
Analytics.Client.Page(null, "Login", new Properties(), new Options()
57-
.SetAnonymousId("some-id"));
58-
```
53+
<br> Before:
54+
```c#
55+
Analytics.Client.Page(null, "Login", new Properties(), new Options()
56+
.SetAnonymousId("some-id"));
57+
```
5958

60-
<br> After:
61-
62-
```c#
63-
analytics.Reset();
64-
```
59+
<br> After:
60+
```c#
61+
analytics.Reset();
62+
```
6563

66-
## Optional Changes for Unit Tests
64+
## Optional changes for unit tests
6765

68-
Change your development settings if you would like to make analytics run synchronously for testing purposes.
66+
Change your development settings if you would like to make analytics run synchronously for testing purposes.
6967

70-
<br> Before:
71-
72-
```c#
73-
Analytics.Initialize("YOUR_WRITE_KEY", new Config().SetAsync(false));
74-
```
68+
<br> Before:
69+
```c#
70+
Analytics.Initialize("YOUR_WRITE_KEY", new Config().SetAsync(false));
71+
```
7572

76-
<br> After:
77-
78-
```c#
79-
var configuration = new Configuration("YOUR WRITE KEY",
80-
useSynchronizeDispatcher: true);
81-
var analytics = new Analytics(configuration);
82-
```
73+
<br> After:
74+
```c#
75+
var configuration = new Configuration("YOUR WRITE KEY",
76+
useSynchronizeDispatcher: true);
77+
var analytics = new Analytics(configuration);
78+
```

0 commit comments

Comments
 (0)