protected ContainerRemote(string accountName, string accountKey) { operations = CommonIO.Create(accountName, accountKey); operations.OnDownloadBytesTransferred += Operations_OnDownloadBytesTransferred; operations.OnDownloadCompleted += Operations_OnDownloadCompleted; operations.OnUploadBytesTransferred += Operations_OnUploadBytesTransferred; operations.OnUploadCompleted += Operations_OnUploadCompleted; }
public static CommonIO Create(string accountName, string accountKey) { if (instance == null) { instance = new CommonIO(accountName, accountKey); } return(instance); }
protected ContainerRemote(string accountName, string accountKey) { operations = CommonIO.Create(accountName, accountKey); operations.OnDownloadBytesTransferred += Operations_OnDownloadBytesTransferred; operations.OnDownloadCompleted += Operations_OnDownloadCompleted; operations.OnUploadBytesTransferred += Operations_OnUploadBytesTransferred; operations.OnUploadCompleted += Operations_OnUploadCompleted; uploadQueue = new Dictionary <string, LockFile>(); timer = new System.Timers.Timer(60000.0); timer.Elapsed += Timer_Elapsed; timer.Start(); }