Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AzureTableStorageCache"/> class.
        /// </summary>
        /// <param name="options">The options.</param>
        public AzureTableStorageCache([NotNull] IOptions <AzureTableStorageCacheOptions> options)
        {
            Guard.NotNull(options, nameof(options));

            _options = options.Value;

            // Create CloudTableClient
            var client = CloudStorageAccount.Parse(_options.ConnectionString).CreateCloudTableClient();

            // Create TableSet
            _tableSet = new TableSet <CachedItem>(client, _options.TableName);
        }
Esempio n. 2
0
 public SubscriptionRepository(ITableSet<RealtimeSubscription> tableSet)
 {
     _tableSet = tableSet;
 }
Esempio n. 3
0
 /// <summary>
 ///     Constructor.
 /// </summary>
 /// <param name="issues">Issues table context.</param>
 public IssuesController(ITableSet<Issue> issues)
 {
     _issues = issues;
 }