public SqliteSyncProvider(SqliteSyncConfiguration configuration, ProviderMode providerMode = ProviderMode.Bidirectional, ISyncLogger logger = null)
        {
            Configuration = configuration;
            ProviderMode  = providerMode;
            _logger       = logger;

            if (configuration.Tables.Any(_ => _.SyncDirection != SyncDirection.UploadAndDownload) &&
                providerMode == ProviderMode.Bidirectional)
            {
                throw new InvalidOperationException("One or more table with sync direction different from Bidirectional: please must specify the provider mode to Local or Remote");
            }
        }
Esempio n. 2
0
 public SqliteSyncProvider(SqliteSyncConfiguration configuration)
 {
     Configuration = configuration;
 }