Changed the retry function in PithosClient to use the TPL
[pithos-ms-client] / trunk / Pithos.Core / IStatusKeeper.cs
index 554ca8b..810640a 100644 (file)
@@ -3,6 +3,7 @@ using System.Collections.Generic;
 using System.Diagnostics.Contracts;
 using System.IO;
 using System.Linq;
+using System.Threading;
 using Pithos.Interfaces;
 
 namespace Pithos.Core
@@ -26,6 +27,9 @@ namespace Pithos.Core
         void SetStatus(string path, Action<FileState> setter);        
         void SetNetworkState(string fileName, NetworkState uploading);
         NetworkState GetNetworkState(string fileName);
+
+        void StartProcessing(CancellationToken token);
+
     }
 
     [ContractClassFor(typeof(IStatusKeeper))]
@@ -130,5 +134,11 @@ namespace Pithos.Core
         public void SetPithosStatus(PithosStatus status)
         {
         }
+
+        public void StartProcessing(CancellationToken token)
+        {
+            Contract.Requires(token != null, "token can't be empty");
+        }
+
     }
 }