コード例 #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();
 }