This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.WindowsAzure.StorageClient; | |
| /// <summary> | |
| /// Ensure that blobContainer exists before this method returns. | |
| /// There is no timeout or maximum time for which this method can run. | |
| /// </summary> | |
| /// <param name="blobContainer">The (possibly not-yet-created) blob container.</param> | |
| /// <param name="options">Required options for blob creation.</param> | |
| /// <param name="retryDelay">Optional. Control how long to sleep between creation attempts.</param> | |
| /// <returns>If success, just returns. Otherwise, exception is thrown.</returns> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.IO; | |
| using System.Runtime.Serialization.Formatters.Binary; | |
| // Alternative (not related to this code, but in case you want to serialize to XML | |
| // instead): http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/5d08bc28-5b61-4c5a-8c4b-4665b1c929ea/ | |
| // Usage example | |
| // NOTE: The Windows Azure CloudQueueMessage constructor accepts either a string | |
| // or a byte array. If a byte array is passed in, it is Base64 encoded. | |
| // Base64 encoding results in approx a 1/3 payload size penalty (so the |
NewerOlder