Class SyncConfiguration
A SyncConfiguration is used to setup a Realm that can be synchronized between devices using the Realm Object Server. A valid User is required to create a SyncConfiguration.
Inherited Members
Namespace: Realms.Sync
Assembly: Realm.Sync.dll
Syntax
public class SyncConfiguration : RealmConfigurationBase
Constructors
| Improve this Doc View SourceSyncConfiguration(User, Uri, String)
Initializes a new instance of the SyncConfiguration class.
Declaration
public SyncConfiguration(User user = null, Uri serverUri = null, string optionalPath = null)
Parameters
Type | Name | Description |
---|---|---|
User | user | A valid User. If not provided, the currently logged-in user will be used. |
Uri | serverUri | A unique |
String | optionalPath | Path to the realm, must be a valid full path for the current platform, relative subdirectory, or just filename. |
Properties
| Improve this Doc View SourceEnableSSLValidation
Gets or sets a value indicating whether SSL certificate validation is enabled for the connection associated with this configuration value.
Declaration
public bool EnableSSLValidation { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsPartial
Gets or sets a value indicating whether this Realm should be opened in 'Query-based synchronization' mode. Query-based synchronization mode means that no objects are synchronized from the remote Realm except those matching queries that the user explicitly specifies.
Declaration
public bool IsPartial { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
LogLevel
Gets or sets a value indicating how detailed the sync client's logs will be.
Declaration
public static LogLevel LogLevel { get; set; }
Property Value
Type | Description |
---|---|
LogLevel |
ServerUri
Gets the
Declaration
public Uri ServerUri { get; }
Property Value
Type | Description |
---|---|
Uri | The |
TrustedCAPath
Gets or sets the path to the trusted root certificate(s) authority (CA) in PEM format, that should be used to validate the TLS connections to the Realm Object Server.
Declaration
public string TrustedCAPath { get; set; }
Property Value
Type | Description |
---|---|
String | The path to the certificate. |
Remarks
The file will be copied at runtime into the internal storage.
It is recommended to include only the root CA you trust, and not the entire list of root CA as this file
will be loaded at runtime. It is your responsibility to download and verify the correct PEM for the root CA
you trust.
This property is ignored on Apple platforms - you should use the KeyChain API to install your certificate
instead.
See Also
| Improve this Doc View SourceUser
Gets the User used to create this SyncConfiguration.
Declaration
public User User { get; }
Property Value
Type | Description |
---|---|
User |
Methods
| Improve this Doc View SourceSetFeatureToken(String)
Sets the feature token, associated with your edition. You only need to call it if you're using a professional or higher edition and only on platforms where features are disabled for lower editions.
Declaration
public static void SetFeatureToken(string token)
Parameters
Type | Name | Description |
---|---|---|
String | token | The feature token provided to you by the Realm team. |