예제 #1
0
 public TableTimedLockoutStore(TableStoreOptions options)
     : this(new TableCrudStore <string, TimedLockoutModel>(
                entityStore : BuildEntityStore(options),
                dataKeyToEntityKeys : key => CreateEntityKeys(key),
                dataToEntityKeys : model => CreateEntityKeys(model.Key)))
 {
 }
예제 #2
0
        protected static TableEntityStore BuildEntityStore(TableStoreOptions options)
        {
            Guard.Null(nameof(options), options);

            return(new TableEntityStore(
                       table: CloudStorageAccount.Parse(options.StorageAccountConnectionString)
                       .CreateCloudTableClient().GetTableReference(options.UserStoreTableName),
                       options: options.TableRequest));
        }
예제 #3
0
                public void WhenCalled_SetsStorageAccountConnectionString()
                {
                    var options = new TableStoreOptions("ConnectionString");

                    Assert.Equal("ConnectionString", options.StorageAccountConnectionString);
                }
예제 #4
0
 public TableUserStore(TableStoreOptions options)
     : this(BuildEntityStore(options))
 {
 }
예제 #5
0
 public TableUserEmailStore(TableStoreOptions options) : base(options)
 {
 }