diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-02-24 00:57:14 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-02-24 00:57:14 +0200 |
| commit | 0adea9eb464a3f2d5d73b2c8c26d32e0d1a3874b (patch) | |
| tree | bb5e4055020aa4417e1f7703a611353ce44689d6 /Software/Visual_Studio/Tango.Web/Storage | |
| parent | 17612c08da93c75d4c941a643bc7602c18f351d8 (diff) | |
| download | Tango-0adea9eb464a3f2d5d73b2c8c26d32e0d1a3874b.tar.gz Tango-0adea9eb464a3f2d5d73b2c8c26d32e0d1a3874b.zip | |
Working on refresh tokens...
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/Storage')
| -rw-r--r-- | Software/Visual_Studio/Tango.Web/Storage/BlobStorageManager.cs (renamed from Software/Visual_Studio/Tango.Web/Storage/StorageManager.cs) | 4 | ||||
| -rw-r--r-- | Software/Visual_Studio/Tango.Web/Storage/TableStorageManager.cs | 26 |
2 files changed, 28 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Web/Storage/StorageManager.cs b/Software/Visual_Studio/Tango.Web/Storage/BlobStorageManager.cs index 17b01d1e2..d3f8b1dc4 100644 --- a/Software/Visual_Studio/Tango.Web/Storage/StorageManager.cs +++ b/Software/Visual_Studio/Tango.Web/Storage/BlobStorageManager.cs @@ -8,11 +8,11 @@ using System.Threading.Tasks; namespace Tango.Web.Storage { - public class StorageManager + public class BlobStorageManager { private CloudBlobClient _client; - public StorageManager() + public BlobStorageManager() { CloudStorageAccount storageAccount = CloudStorageAccount.Parse(WebConfig.STORAGE_ACCOUNT); _client = storageAccount.CreateCloudBlobClient(); diff --git a/Software/Visual_Studio/Tango.Web/Storage/TableStorageManager.cs b/Software/Visual_Studio/Tango.Web/Storage/TableStorageManager.cs new file mode 100644 index 000000000..7b3a3d513 --- /dev/null +++ b/Software/Visual_Studio/Tango.Web/Storage/TableStorageManager.cs @@ -0,0 +1,26 @@ +using Microsoft.WindowsAzure.Storage; +using Microsoft.WindowsAzure.Storage.Table; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Web.Storage +{ + public class TableStorageManager + { + private CloudTableClient _client; + + public TableStorageManager() + { + CloudStorageAccount storageAccount = CloudStorageAccount.Parse(WebConfig.STORAGE_ACCOUNT); + _client = storageAccount.CreateCloudTableClient(); + } + + public CloudTable GetTable(String name) + { + return _client.GetTableReference(name); + } + } +} |
