1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 12:43:14 +00:00

write events to table storage

This commit is contained in:
Kyle Spearrin
2017-12-08 16:03:20 -05:00
parent 8626d7e769
commit 83a7c98fae
5 changed files with 78 additions and 15 deletions

View File

@@ -12,8 +12,12 @@ namespace Bit.Core.Repositories.TableStorage
public class EventRepository : IEventRepository
{
public EventRepository(GlobalSettings globalSettings)
: this(globalSettings.Storage.ConnectionString)
{ }
public EventRepository(string storageConnectionString)
{
var storageAccount = CloudStorageAccount.Parse(globalSettings.Storage.ConnectionString);
var storageAccount = CloudStorageAccount.Parse(storageConnectionString);
var tableClient = storageAccount.CreateCloudTableClient();
Table = tableClient.GetTableReference("event");
}