Esempio n. 1
0
        private static void ProcessUploadDataOptions(UploadDataOptions options)
        {
            var connection = new BlobStorageConnectionDetails(options.BlobStoragePolicyName,
                                                              options.BlobStoragePolicyKey, options.BlobStorageContainer, options.BlobStorageRootFolder,
                                                              options.BlobStorageArchiveFolder);
            var blobManager = new BlobStorageManager(connection);

            blobManager.CreateFile(options.Filename);
        }
Esempio n. 2
0
        private static void ProcessGenerateLocalUploadOptions(GenerateLocalUploadOptions options)
        {
            var deviceDetails = GetDeviceDetails();

            deviceDetails.RedirectToLocalFile = true;
            deviceDetails.RedirectFileName    = options.Filename;
            deviceDetails.RedirectType        = options.Type;

            var generator = new MessageGenerator(deviceDetails, null);

            generator.GenerateMessages();

            var connection = new BlobStorageConnectionDetails(options.BlobStoragePolicyName,
                                                              options.BlobStoragePolicyKey, options.BlobStorageContainer, options.BlobStorageRootFolder,
                                                              options.BlobStorageArchiveFolder);
            var blobManager = new BlobStorageManager(connection);

            blobManager.CreateFile(options.Filename);
        }
Esempio n. 3
0
        private static void ProcessGenerateLocalUploadOptions(GenerateLocalUploadOptions options)
        {
            var deviceDetails = GetDeviceDetails();
            deviceDetails.RedirectToLocalFile = true;
            deviceDetails.RedirectFileName = options.Filename;
            deviceDetails.RedirectType = options.Type;

            var generator = new MessageGenerator(deviceDetails, null);
            generator.GenerateMessages();

            var connection = new BlobStorageConnectionDetails(options.BlobStoragePolicyName,
                    options.BlobStoragePolicyKey, options.BlobStorageContainer, options.BlobStorageRootFolder,
                    options.BlobStorageArchiveFolder);
            var blobManager = new BlobStorageManager(connection);
            blobManager.CreateFile(options.Filename);
        }
Esempio n. 4
0
 private static void ProcessUploadDataOptions(UploadDataOptions options)
 {
     var connection = new BlobStorageConnectionDetails(options.BlobStoragePolicyName,
         options.BlobStoragePolicyKey, options.BlobStorageContainer, options.BlobStorageRootFolder,
         options.BlobStorageArchiveFolder);
     var blobManager = new BlobStorageManager(connection);
     blobManager.CreateFile(options.Filename);
 }