Exemplo n.º 1
0
 public ChangeTracker(Uri databaseURL, ChangeTracker.ChangeTrackerMode mode, object
                      lastSequenceID, IChangeTrackerClient client)
 {
     this.databaseURL    = databaseURL;
     this.mode           = mode;
     this.lastSequenceID = lastSequenceID;
     this.client         = client;
     this.requestHeaders = new Dictionary <string, object>();
 }
Exemplo n.º 2
0
 public void Stopped()
 {
     Log.D(Tag, this + ": change tracker in stopped");
     if (client != null)
     {
         Log.D(Tag, this + ": posting stopped");
         client.ChangeTrackerStopped(this);
     }
     client = null;
     Log.D(Tag, this + ": change tracker client should be null now");
 }
Exemplo n.º 3
0
 public virtual void Stopped()
 {
     Log.D(Database.Tag, "change tracker in stopped");
     if (client != null)
     {
         Log.D(Database.Tag, "posting stopped");
         client.ChangeTrackerStopped(this);
     }
     client = null;
     Log.D(Database.Tag, "change tracker client should be null now");
 }
Exemplo n.º 4
0
 public ChangeTracker(Uri databaseURL, ChangeTracker.ChangeTrackerMode mode, object lastSequenceID,
                      Boolean includeConflicts, IChangeTrackerClient client)
 {
     this.databaseURL      = databaseURL;
     this.mode             = mode;
     this.includeConflicts = includeConflicts;
     this.lastSequenceID   = lastSequenceID;
     this.client           = client;
     this.RequestHeaders   = new Dictionary <string, object>();
     this.tokenSource      = new CancellationTokenSource();
 }
Exemplo n.º 5
0
 public ChangeTracker(Uri databaseURL, ChangeTrackerMode mode, object lastSequenceID,
                      Boolean includeConflicts, IChangeTrackerClient client, TaskFactory workExecutor = null)
 {
     // does not work, do not use it.
     this.databaseURL      = databaseURL;
     this.mode             = mode;
     this.includeConflicts = includeConflicts;
     this.lastSequenceID   = lastSequenceID;
     this.client           = client;
     this.RequestHeaders   = new Dictionary <string, object>();
     this.tokenSource      = new CancellationTokenSource();
     WorkExecutor          = workExecutor ?? Task.Factory;
 }
 public void Stopped()
 {
     Log.D(TAG, "change tracker in stopped");
     if (client != null)
     {
         Log.D(TAG, "posting stopped");
         client.ChangeTrackerStopped(this);
     }
     client = null;
     Log.D(TAG, "change tracker client should be null now");
 }
 public void SetClient(IChangeTrackerClient client)
 {
     this.client = client;
 }
 public ChangeTracker(Uri databaseURL, ChangeTrackerMode mode, object lastSequenceID, 
     Boolean includeConflicts, IChangeTrackerClient client, TaskFactory workExecutor = null)
 {
     // does not work, do not use it.
     this.databaseURL = databaseURL;
     this.mode = mode;
     this.includeConflicts = includeConflicts;
     this.lastSequenceID = lastSequenceID;
     this.client = client;
     this.RequestHeaders = new Dictionary<string, object>();
     this.tokenSource = new CancellationTokenSource();
     WorkExecutor = workExecutor ?? Task.Factory;
 }
Exemplo n.º 9
0
 public virtual void SetClient(IChangeTrackerClient client)
 {
     this.client = client;
 }
Exemplo n.º 10
0
 public ChangeTracker(Uri databaseURL, ChangeTracker.ChangeTrackerMode mode, object
      lastSequenceID, IChangeTrackerClient client)
 {
     this.databaseURL = databaseURL;
     this.mode = mode;
     this.lastSequenceID = lastSequenceID;
     this.client = client;
     this.requestHeaders = new Dictionary<string, object>();
 }
Exemplo n.º 11
0
        public ChangeTracker(Uri databaseURL, ChangeTracker.ChangeTrackerMode mode, object lastSequenceID, 
            Boolean includeConflicts, IChangeTrackerClient client)
		{
			this.databaseURL = databaseURL;
			this.mode = mode;
            this.includeConflicts = includeConflicts;
			this.lastSequenceID = lastSequenceID;
			this.client = client;
			this.RequestHeaders = new Dictionary<string, object>();
            this.tokenSource = new CancellationTokenSource();
		}