Beispiel #1
0
 public GetFileThreadParams(BoxSync.Core.Primitives.File file, GetFileCompletedAction completedAction)
 {
     this.File = file;
     this.CompletedAction = completedAction;
 }
Beispiel #2
0
 /// <summary>
 /// Get the content of a file asynchronously
 /// </summary>
 /// <param name="file"></param>
 /// <param name="fileCompleted"></param>
 public void GetFileContentAsync(BoxSync.Core.Primitives.File file, GetFileCompletedAction fileCompleted)
 {
     GetFileThreadParams threadParams = new GetFileThreadParams(file, fileCompleted);
     Thread thread = new Thread(new ParameterizedThreadStart(GetFileContentThreadMethod));
     thread.Start(threadParams);
 }