public GetFileThreadParams(BoxSync.Core.Primitives.File file, GetFileCompletedAction completedAction) { this.File = file; this.CompletedAction = completedAction; }
/// <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); }