Пример #1
0
 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;
 }
Пример #2
0
        public static CommonIO Create(string accountName, string accountKey)
        {
            if (instance == null)
            {
                instance = new CommonIO(accountName, accountKey);
            }

            return(instance);
        }
Пример #3
0
 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();
 }