Skip to content

Commit 3b7abbe

Browse files
committed
Merge branch 'feature-consolidated-sdk-docs' into master
2 parents 1c90e65 + 227206b commit 3b7abbe

File tree

1,013 files changed

+9329
-136174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,013 files changed

+9329
-136174
lines changed

examples/dotnet/Examples/Asymmetrics.cs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,26 @@ namespace Examples
1111
{
1212
public partial class Asymmetrics
1313
{
14-
App app;
15-
Realms.Sync.User user;
1614
Realm realm;
17-
const string myRealmAppId = Config.FSAppId;
15+
const string myAppId = Config.FSAppId;
1816

1917
[OneTimeSetUp]
2018
public void Setup()
2119
{
22-
app = App.Create(myRealmAppId);
23-
user = app.LogInAsync(
20+
// :snippet-start: connect-and-authenticate
21+
App app = App.Create(myAppId);
22+
Realms.Sync.User user = app.LogInAsync(
2423
Credentials.Anonymous()).Result;
25-
24+
// :snippet-end:
25+
26+
// :snippet-start: configure-and-open-db
2627
var config = new FlexibleSyncConfiguration(user)
2728
{
2829
Schema = new[] { typeof(Measurement) }
2930
};
3031

31-
3232
realm = Realm.GetInstance(config);
33+
// :snippet-end:
3334

3435
// You cannot add a subscription for an AsymmetricObject
3536
// This causes a compile-time error:
@@ -40,22 +41,18 @@ public void Setup()
4041
//});
4142
// :uncomment-end:
4243
}
43-
44-
// :snippet-start: asymmetry
45-
// :remove-start:
4644
[Realms.Explicit]
47-
// :remove-end:
45+
// :snippet-start: define-asymmetric-object
4846
private partial class Measurement : IAsymmetricObject
4947
{
5048
[PrimaryKey, MapTo("_id")]
5149
public Guid Id { get; private set; } = Guid.NewGuid();
5250
public double Value { get; set; }
5351
public DateTimeOffset Timestamp { get; private set; } = DateTimeOffset.UtcNow;
5452
}
55-
56-
// :remove-start:
53+
// :snippet-end:
5754
[Test]
58-
// :remove-end:
55+
// :snippet-start: asymmetry
5956
public void SendMeasurementToRealm()
6057
{
6158
var measurement = new Measurement
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The Java SDK does not support this API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The C++ SDK does not currently support this API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The .NET SDK does not currently support this API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The Flutter SDK does not currently support this API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The Java SDK does not support this API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The Node.js SDK does not currently support this API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The Kotlin SDK does not currently support this API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The Swift SDK does not currently support this API.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// The Swift SDK does not currently support this API.

0 commit comments

Comments
 (0)