Created
July 31, 2012 17:41
-
-
Save davidsavagejr/3218855 to your computer and use it in GitHub Desktop.
This file contains 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
private string SerializeErrorToBlob(ErrorEntity error) | |
{ | |
string id = Guid.NewGuid().ToString(); | |
string xml = ErrorXml.EncodeString(error.GetOriginalError()); | |
var container = CloudStorageAccount.Parse(this.connectionString).CreateCloudBlobClient().GetContainerReference("elmaherrors"); | |
var blob = container.GetBlobReference(id); | |
blob.UploadText(xml); | |
return id; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment