Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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);
return id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment