aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Persistence/IRepository.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-20 20:33:05 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-20 20:33:05 -0500
commit767cdc1f6f6a63ce997fc9476911e2c361f9d402 (patch)
tree49add55976f895441167c66cfa95e5c7688d18ce /MediaBrowser.Controller/Persistence/IRepository.cs
parent845554722efaed872948a9e0f7202e3ef52f1b6e (diff)
Pushing missing changes
Diffstat (limited to 'MediaBrowser.Controller/Persistence/IRepository.cs')
-rw-r--r--MediaBrowser.Controller/Persistence/IRepository.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Persistence/IRepository.cs b/MediaBrowser.Controller/Persistence/IRepository.cs
new file mode 100644
index 0000000000..2d051aa82c
--- /dev/null
+++ b/MediaBrowser.Controller/Persistence/IRepository.cs
@@ -0,0 +1,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; }
+ }
+}