Exemple #1
0
        /// <returns>Job Id</returns>
        public Guid StartMigrationJob()
        {
            var sourceFileContainerUrl = _testDataProvider.GetBlobUri();
            var manifestContainerUrl   = _blobContainingManifestFiles.GetUri(
                SharedAccessBlobPermissions.Read
                | SharedAccessBlobPermissions.Write
                | SharedAccessBlobPermissions.List);

            var azureQueueReportUrl = _migrationApiQueue.GetUri(
                SharedAccessQueuePermissions.Read
                | SharedAccessQueuePermissions.Add
                | SharedAccessQueuePermissions.Update
                | SharedAccessQueuePermissions.ProcessMessages);

            return(_target.StartMigrationJob(sourceFileContainerUrl, manifestContainerUrl, azureQueueReportUrl));
        }
 public Uri GetBlobUri()
 {
     return(_azureBlob.GetUri(SharedAccessBlobPermissions.Read | SharedAccessBlobPermissions.List));
 }