public async Task <TTableStore> CreateTableRepositoryAsync <TTableStore>(Tenant tenant) where TTableStore : IRepository
        {
            if (!_typeMap.ContainsKey(typeof(TTableStore)))
            {
                new ArgumentOutOfRangeException($"{typeof(TTableStore).FullName} is not registered.");
            }

            return((TTableStore)(await RepositoryExtensions
                                 .CreateTableRepository(_typeMap[typeof(TTableStore)], tenant, this._configStore, this._logFactory)
                                 .ConfigureAwait(false)));
        }