Renamed IApiInfo -> IApiInfoProvider

This commit is contained in:
Kristian Hellang
2015-07-31 12:08:16 +02:00
parent f8ee4f94a1
commit a6a6fdf13f
11 changed files with 12 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
namespace Octokit.Reactive
{
public interface IObservableGitHubClient : IApiInfo
public interface IObservableGitHubClient : IApiInfoProvider
{
IConnection Connection { get; }

View File

@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Octokit
namespace Octokit
{
/// <summary>
/// Provides a property for the Last recorded API infomation
/// </summary>
public interface IApiInfo
public interface IApiInfoProvider
{
/// <summary>
/// Gets the latest API Info - this will be null if no API calls have been made

View File

@@ -10,7 +10,7 @@ namespace Octokit
/// <summary>
/// A connection for making HTTP requests against URI endpoints.
/// </summary>
public interface IConnection : IApiInfo
public interface IConnection : IApiInfoProvider
{
/// <summary>
/// Performs an asynchronous HTTP GET request that expects a <seealso cref="IResponse"/> containing HTML.

View File

@@ -10,7 +10,7 @@ namespace Octokit.Internal
/// <remarks>
/// Most folks won't ever need to swap this out. But if you're trying to run this on Windows Phone, you might.
/// </remarks>
public interface IHttpClient : IDisposable, IApiInfo
public interface IHttpClient : IDisposable, IApiInfoProvider
{
/// <summary>
/// Sends the specified request and returns a response.

View File

@@ -5,7 +5,7 @@ namespace Octokit
/// <summary>
/// A Client for the GitHub API v3. You can read more about the api here: http://developer.github.com.
/// </summary>
public interface IGitHubClient : IApiInfo
public interface IGitHubClient : IApiInfoProvider
{
/// <summary>
/// Provides a client connection to make rest requests to HTTP endpoints.

View File

@@ -399,7 +399,7 @@
<Compile Include="Models\Response\ResourceRateLimit.cs" />
<Compile Include="Models\Response\MiscellaneousRateLimit.cs" />
<Compile Include="Exceptions\RepositoryFormatException.cs" />
<Compile Include="Http\IApiInfo.cs" />
<Compile Include="Http\IApiInfoProvider.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -415,7 +415,7 @@
<Compile Include="Models\Response\ResourceRateLimit.cs" />
<Compile Include="Models\Response\MiscellaneousRateLimit.cs" />
<Compile Include="Exceptions\RepositoryFormatException.cs" />
<Compile Include="Http\IApiInfo.cs" />
<Compile Include="Http\IApiInfoProvider.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
</Project>

View File

@@ -408,7 +408,7 @@
<Compile Include="Models\Response\ResourceRateLimit.cs" />
<Compile Include="Models\Response\MiscellaneousRateLimit.cs" />
<Compile Include="Exceptions\RepositoryFormatException.cs" />
<Compile Include="Http\IApiInfo.cs" />
<Compile Include="Http\IApiInfoProvider.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

View File

@@ -398,7 +398,7 @@
<Compile Include="Models\Response\ResourceRateLimit.cs" />
<Compile Include="Models\Response\MiscellaneousRateLimit.cs" />
<Compile Include="Exceptions\RepositoryFormatException.cs" />
<Compile Include="Http\IApiInfo.cs" />
<Compile Include="Http\IApiInfoProvider.cs" />
</ItemGroup>
<ItemGroup>
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">

View File

@@ -402,7 +402,7 @@
<Compile Include="Models\Response\ResourceRateLimit.cs" />
<Compile Include="Models\Response\MiscellaneousRateLimit.cs" />
<Compile Include="Exceptions\RepositoryFormatException.cs" />
<Compile Include="Http\IApiInfo.cs" />
<Compile Include="Http\IApiInfoProvider.cs" />
</ItemGroup>
<ItemGroup>
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">

View File

@@ -84,7 +84,7 @@
<Compile Include="Helpers\PropertyOrField.cs" />
<Compile Include="Helpers\SerializeNullAttribute.cs" />
<Compile Include="Http\HttpMessageHandlerFactory.cs" />
<Compile Include="Http\IApiInfo.cs" />
<Compile Include="Http\IApiInfoProvider.cs" />
<Compile Include="Http\ProductHeaderValue.cs" />
<Compile Include="Models\Request\GistFileUpdate.cs" />
<Compile Include="Models\Request\NewMerge.cs" />