Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5083113

Browse files
authored
Update migration-guide.md
1 parent2f7e589 commit5083113

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 anonymousID.
5050

51-
The oldSDK requires you to provide the anonymousID.In thenewSDK, it generates an AnonymousIDfor youif you never call`analytics.Identify`.If you call`Identify` and want to go back to anonymous, thenewSDK provides a`Reset`function to achieve that.
51+
The oldSDK requires you to provide the anonymousID.ThenewSDK generates an AnonymousIDfor youif you never call`analytics.Identify`.If you call`Identify` and want to go back to anonymous, thenewSDK provides a`Reset`function to achieve that.
5252

5353
<br> Before:
54+
5455
```c#
5556
Analytics.Client.Page(null,"Login",newProperties(),newOptions()
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)

[8]ページ先頭

©2009-2025 Movatter.jp