mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
* Updated GitHubClient.cs XML Docs to match dev docs. * Updated Connection.cs XML Docs to match dev docs. * Updated ProductHeaderValue.cs XML Docs to match GitHub dev docs. * Updated EnterpriseProbe.cs XML Docs to match GitHub dev docs. * Updated GitHubClient.cs XML Docs to match GitHub dev docs, corrected grammar issue. * Updated Connection.cs XML Docs to match GitHub dev docs, corrected grammar issue. * Updated ProductHeaderValue.cs XML Docs to match GitHub dev docs, corrected grammar issue. * Removed my tabs, replaced with spaces to match format. * Removed tabs again * There seems to be some kind of bug where tabs are being shown though my local editor show none, so I'm submitting a bug to GitHub.com and editing in-browser to fix. * Update GitHubClient.cs * There seems to be some kind of bug where tabs are being shown though my local editor show none, so I'm submitting a bug to GitHub.com and editing in-browser to fix. * Update Connection.cs * There seems to be some kind of bug where tabs are being shown though my local editor show none, so I'm submitting a bug to GitHub.com and editing in-browser to fix. * Change a couple of tabs to spaces * tabs to spaces * tabs to spaces
This commit is contained in:
committed by
Ryan Gribble
parent
11e1c305cd
commit
81635c6dfe
+31
-13
@@ -15,7 +15,7 @@ using System.Runtime.InteropServices;
|
||||
namespace Octokit
|
||||
{
|
||||
// NOTE: Every request method must go through the `RunRequest` code path. So if you need to add a new method
|
||||
// ensure it goes through there. :)
|
||||
// ensure it goes through there. :)
|
||||
/// <summary>
|
||||
/// A connection for making HTTP requests against URI endpoints.
|
||||
/// </summary>
|
||||
@@ -31,9 +31,12 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Creates a new connection instance used to make requests of the GitHub API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
/// <param name="productInformation">
|
||||
/// The name (and optionally version) of the product using this library. This is sent to the server as part of
|
||||
/// the user agent for analytics purposes.
|
||||
/// The name (and optionally version) of the product using this library, the name of your GitHub organization, or your GitHub username (in that order of preference). This is sent to the server as part of
|
||||
/// the user agent for analytics purposes, and used by GitHub to contact you if there are problems.
|
||||
/// </param>
|
||||
public Connection(ProductHeaderValue productInformation)
|
||||
: this(productInformation, _defaultGitHubApiUrl, _anonymousCredentials)
|
||||
@@ -43,9 +46,12 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Creates a new connection instance used to make requests of the GitHub API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
/// <param name="productInformation">
|
||||
/// The name (and optionally version) of the product using this library. This is sent to the server as part of
|
||||
/// the user agent for analytics purposes.
|
||||
/// The name (and optionally version) of the product using this library, the name of your GitHub organization, or your GitHub username (in that order of preference). This is sent to the server as part of
|
||||
/// the user agent for analytics purposes, and used by GitHub to contact you if there are problems.
|
||||
/// </param>
|
||||
/// <param name="httpClient">
|
||||
/// The client to use for executing requests
|
||||
@@ -58,9 +64,12 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Creates a new connection instance used to make requests of the GitHub API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
/// <param name="productInformation">
|
||||
/// The name (and optionally version) of the product using this library. This is sent to the server as part of
|
||||
/// the user agent for analytics purposes.
|
||||
/// The name (and optionally version) of the product using this library, the name of your GitHub organization, or your GitHub username (in that order of preference). This is sent to the server as part of
|
||||
/// the user agent for analytics purposes, and used by GitHub to contact you if there are problems.
|
||||
/// </param>
|
||||
/// <param name="baseAddress">
|
||||
/// The address to point this client to such as https://api.github.com or the URL to a GitHub Enterprise
|
||||
@@ -73,9 +82,12 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Creates a new connection instance used to make requests of the GitHub API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
/// <param name="productInformation">
|
||||
/// The name (and optionally version) of the product using this library. This is sent to the server as part of
|
||||
/// the user agent for analytics purposes.
|
||||
/// The name (and optionally version) of the product using this library, the name of your GitHub organization, or your GitHub username (in that order of preference). This is sent to the server as part of
|
||||
/// the user agent for analytics purposes, and used by GitHub to contact you if there are problems.
|
||||
/// </param>
|
||||
/// <param name="credentialStore">Provides credentials to the client when making requests</param>
|
||||
public Connection(ProductHeaderValue productInformation, ICredentialStore credentialStore)
|
||||
@@ -86,9 +98,12 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Creates a new connection instance used to make requests of the GitHub API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
/// <param name="productInformation">
|
||||
/// The name (and optionally version) of the product using this library. This is sent to the server as part of
|
||||
/// the user agent for analytics purposes.
|
||||
/// The name (and optionally version) of the product using this library, the name of your GitHub organization, or your GitHub username (in that order of preference). This is sent to the server as part of
|
||||
/// the user agent for analytics purposes, and used by GitHub to contact you if there are problems.
|
||||
/// </param>
|
||||
/// <param name="baseAddress">
|
||||
/// The address to point this client to such as https://api.github.com or the URL to a GitHub Enterprise
|
||||
@@ -103,9 +118,12 @@ namespace Octokit
|
||||
/// <summary>
|
||||
/// Creates a new connection instance used to make requests of the GitHub API.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
/// <param name="productInformation">
|
||||
/// The name (and optionally version) of the product using this library. This is sent to the server as part of
|
||||
/// the user agent for analytics purposes.
|
||||
/// The name (and optionally version) of the product using this library, the name of your GitHub organization, or your GitHub username (in that order of preference). This is sent to the server as part of
|
||||
/// the user agent for analytics purposes, and used by GitHub to contact you if there are problems.
|
||||
/// </param>
|
||||
/// <param name="baseAddress">
|
||||
/// The address to point this client to such as https://api.github.com or the URL to a GitHub Enterprise
|
||||
|
||||
@@ -2,20 +2,24 @@
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a product header value. This is used to generate the User Agent string sent with each request. The
|
||||
/// name used should represent the product that's using Octokit.net.
|
||||
/// name used should represent the product, the GitHub Organization, or the GitHub username that's using Octokit.net (in that order of preference).
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This class is a wrapper around <seealso href="https://msdn.microsoft.com/en-us/library/system.net.http.headers.productheadervalue(v=vs.118).aspx"/>
|
||||
/// This class is a wrapper around <seealso href="https://msdn.microsoft.com/en-us/library/system.net.http.headers.productheadervalue(v=vs.118).aspx"/>
|
||||
/// so that consumers of Octokit.net would not have to add a reference to the System.Net.Http.Headers namespace.
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
public class ProductHeaderValue
|
||||
public class ProductHeaderValue
|
||||
{
|
||||
readonly System.Net.Http.Headers.ProductHeaderValue _productHeaderValue;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProductHeaderValue"/> class.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the product that's using Octokit</param>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
/// <param name="name">The name of the product, the GitHub Organization, or the GitHub Username (in that order of preference) that's using Octokit</param>
|
||||
public ProductHeaderValue(string name)
|
||||
: this(new System.Net.Http.Headers.ProductHeaderValue(name))
|
||||
{
|
||||
@@ -24,7 +28,10 @@
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProductHeaderValue"/> class.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the product that's using Octokit</param>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
/// <param name="name">The name of the product, the GitHub Organization, or the GitHub Username (in that order of preference) that's using Octokit</param>
|
||||
/// <param name="version">The version of the product that's using Octokit</param>
|
||||
public ProductHeaderValue(string name, string version)
|
||||
: this(new System.Net.Http.Headers.ProductHeaderValue(name, version))
|
||||
@@ -37,8 +44,11 @@
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The name of the product that's using Octokit
|
||||
/// The name of the product, the GitHub Organization, or the GitHub Username that's using Octokit (in that order of preference)
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// See more information regarding User-Agent requirements here: https://developer.github.com/v3/#user-agent-required
|
||||
/// </remarks>
|
||||
public string Name
|
||||
{
|
||||
get { return _productHeaderValue.Name; }
|
||||
|
||||
Reference in New Issue
Block a user