aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Persistence/IRepository.cs
blob: 2d051aa82c68e6b7d98497162c14976e66a2e88f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Threading.Tasks;

namespace MediaBrowser.Controller.Persistence
{
    /// <summary>
    /// Provides a base interface for all the repository interfaces
    /// </summary>
    public interface IRepository : IDisposable
    {
        /// <summary>
        /// Opens the connection to the repository
        /// </summary>
        /// <returns>Task.</returns>
        Task Initialize();

        /// <summary>
        /// Gets the name of the repository
        /// </summary>
        /// <value>The name.</value>
        string Name { get; }
    }
}