diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-05-21 18:20:54 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-05-21 18:20:54 +0300 |
| commit | 2521b3c058fe18f1ebd48a85577349b49c1c2108 (patch) | |
| tree | 7537f8848dec9d92ffc5575fabedbccb1d17e108 /Software/Visual_Studio/Tango.Web | |
| parent | 053b6d740ab231380ed6dfa06913bec21225ca41 (diff) | |
| download | Tango-2521b3c058fe18f1ebd48a85577349b49c1c2108.tar.gz Tango-2521b3c058fe18f1ebd48a85577349b49c1c2108.zip | |
TCC database results etc...
Diffstat (limited to 'Software/Visual_Studio/Tango.Web')
| -rw-r--r-- | Software/Visual_Studio/Tango.Web/Storage/ExtensionMethods.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Web/Storage/ExtensionMethods.cs b/Software/Visual_Studio/Tango.Web/Storage/ExtensionMethods.cs index 4acd10082..e9e361f21 100644 --- a/Software/Visual_Studio/Tango.Web/Storage/ExtensionMethods.cs +++ b/Software/Visual_Studio/Tango.Web/Storage/ExtensionMethods.cs @@ -21,6 +21,13 @@ namespace Tango.Web.Storage return emptyBlob; } + public static CloudBlockBlob UploadNewBlob(this CloudBlobContainer container, Stream stream, String name) + { + CloudBlockBlob emptyBlob = container.GetBlockBlobReference(name); + emptyBlob.UploadFromStream(stream); + return emptyBlob; + } + public static String GenerateReadSignature(this CloudBlockBlob blob, TimeSpan duration) { String signature = blob.GetSharedAccessSignature(new SharedAccessBlobPolicy() |
