コード例 #1
0
        private async Task <IEnumerable <string> > GetUserDatabaseNames()
        {
            var userDbPrefix  = $"{DatabaseName.UserDatabasePrefix}-";
            var mediaDbPrefix = $"{DatabaseName.MediaDatabasePrefix}-";

            var dbNames = await _databaseApi.GetDatabaseNames(DocumentStore);

            return(dbNames.Where(x => x.StartsWith(userDbPrefix) || x.StartsWith(mediaDbPrefix)));
        }