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

Commit6e92d6b

Browse files
committed
format edits
1 parent5083113 commit6e92d6b

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

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

53-
<br> Before:
54-
55-
```c#
56-
Analytics.Client.Page(null,"Login",newProperties(),newOptions()
57-
.SetAnonymousId("some-id"));
58-
```
53+
<br> Before:
54+
```c#
55+
Analytics.Client.Page(null,"Login",newProperties(),newOptions()
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-
## OptionalChanges forUnit Tests
64+
## Optionalchanges forunit 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)

[8]ページ先頭

©2009-2025 Movatter.jp