Skip to content

Commit

Permalink
Add IRepoBuilder interface. (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
tusmester authored Jul 18, 2018
1 parent cedaed1 commit b6382ed
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
25 changes: 25 additions & 0 deletions src/SenseNet.Tools/IRepositoryBuilder.cs
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);
}
}
6 changes: 3 additions & 3 deletions src/SenseNet.Tools/SenseNet.Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<RootNamespace>SenseNet.Tools</RootNamespace>
<AssemblyName>SenseNet.Tools</AssemblyName>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>3.0.0</Version>
<Version>3.0.1</Version>
<Title>sensenet Tools</Title>
<Authors>tusmester,kavics</Authors>
<Company>Sense/Net Inc.</Company>
Expand All @@ -21,8 +21,8 @@
<PackageReleaseNotes>See release notes on GitHub.</PackageReleaseNotes>
<NeutralLanguage>en</NeutralLanguage>
<Language>en-US</Language>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<AssemblyVersion>3.0.1.0</AssemblyVersion>
<FileVersion>3.0.1.0</FileVersion>
<DebugType>Full</DebugType>
</PropertyGroup>

Expand Down

0 comments on commit b6382ed

Please sign in to comment.