-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace SenseNet.Tools | ||
{ | ||
/// <summary> | ||
/// Defines methods for adding or modifying providers loaded when the repository starts. | ||
/// </summary> | ||
public interface IRepositoryBuilder | ||
{ | ||
/// <summary> | ||
/// Gets a previously set provider by type. | ||
/// </summary> | ||
T GetProvider<T>() where T : class; | ||
/// <summary> | ||
/// Gets a previously set provider by its name. | ||
/// </summary> | ||
T GetProvider<T>(string name) where T : class; | ||
/// <summary> | ||
/// Sets a provider by its name. | ||
/// </summary> | ||
void SetProvider(string providerName, object provider); | ||
/// <summary> | ||
/// Sets a provider by its type. | ||
/// </summary> | ||
void SetProvider(object provider); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters