Skip to content

Commit

Permalink
Add Missing XML Definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
brminnick committed Nov 24, 2020
1 parent 279d935 commit 620d1fe
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Src/GitHubApiStatus/Interfaces/IGitHubApiRateLimits.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
namespace GitHubApiStatus
{
/// <summary>
/// Interface for GitHub API Rate Limits
/// </summary>
public interface IGitHubApiRateLimits
{
/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Src/GitHubApiStatus/Interfaces/IGitHubApiStatusService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace GitHubApiStatus
{
/// <summary>
/// Interface for GitHubApiStatusService
/// </summary>
public interface IGitHubApiStatusService
{
/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Src/GitHubApiStatus/Interfaces/IRateLimitStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
using System;
namespace GitHubApiStatus
{
/// <summary>
/// Interface for GitHub API Raite Limit Status
/// </summary>
public interface IRateLimitStatus
{
/// <summary>
Expand Down
10 changes: 9 additions & 1 deletion Src/GitHubApiStatus/Services/GitHubApiStatusService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public class GitHubApiStatusService : IGitHubApiStatusService
#if NETSTANDARD
readonly static Lazy<JsonSerializer> _serializerHolder = new(() => new JsonSerializer());
#endif

/// <summary>
/// Initializes GitHubApiStatusService
/// </summary>
/// <param name="authenticationHeaderValue">GitHub Authentication Bearer Token</param>
/// <param name="productHeaderValue">User-Agent Name</param>
public GitHubApiStatusService(AuthenticationHeaderValue authenticationHeaderValue, ProductHeaderValue? productHeaderValue = null)
{
if (authenticationHeaderValue is null)
Expand All @@ -56,6 +60,10 @@ public GitHubApiStatusService(AuthenticationHeaderValue authenticationHeaderValu
Client.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(productHeaderValue));
}

/// <summary>
/// Initializes GitHubApiStatusService
/// </summary>
/// <param name="httpClient">GitHub API requires the following Headers: Authorization and User-Agent</param>
public GitHubApiStatusService(HttpClient httpClient)
{
if (httpClient is null)
Expand Down

0 comments on commit 620d1fe

Please sign in to comment.