diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-12 18:31:19 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-12 18:31:19 -0500 |
| commit | 460014a97bef714513564999d9955804d5ea715f (patch) | |
| tree | e1b4daa80526974311faeb890686f68749c1a54f /src/slskd/Shares/IReadOnlyShareRepository.cs | |
| parent | 99ba8a9fbc4f809041df12d1ad6334733c714144 (diff) | |
| download | slskd-460014a97bef714513564999d9955804d5ea715f.tar.gz | |
make validation method instance
Diffstat (limited to 'src/slskd/Shares/IReadOnlyShareRepository.cs')
| -rw-r--r-- | src/slskd/Shares/IReadOnlyShareRepository.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Shares/IReadOnlyShareRepository.cs b/src/slskd/Shares/IReadOnlyShareRepository.cs index ae2e4c6a..9822f536 100644 --- a/src/slskd/Shares/IReadOnlyShareRepository.cs +++ b/src/slskd/Shares/IReadOnlyShareRepository.cs @@ -72,5 +72,13 @@ namespace slskd.Shares /// <param name="query">The search query.</param> /// <returns>The list of matching files.</returns> IEnumerable<File> Search(SearchQuery query); + + /// <summary> + /// Attempts to validate the database at the specified <paramref name="connectionString"/>, or the + /// default <see cref="ConnectionString"/>. + /// </summary> + /// <param name="connectionString">The connection string of the database to validate.</param> + /// <returns>A value indicating whether the database is valid.</returns> + bool TryValidate(string connectionString = null); } } |
