diff --git a/Octokit.Reactive/ObservableGitHubClient.cs b/Octokit.Reactive/ObservableGitHubClient.cs index 455bee46..f35049b2 100644 --- a/Octokit.Reactive/ObservableGitHubClient.cs +++ b/Octokit.Reactive/ObservableGitHubClient.cs @@ -1,4 +1,6 @@ -using Octokit.Reactive.Clients; +using System; +using System.Net.Http.Headers; +using Octokit.Reactive.Clients; namespace Octokit.Reactive { @@ -6,6 +8,26 @@ namespace Octokit.Reactive { readonly IGitHubClient _gitHubClient; + public ObservableGitHubClient(ProductHeaderValue productInformation) + : this(new GitHubClient(productInformation)) + { + } + + public ObservableGitHubClient(ProductHeaderValue productInformation, ICredentialStore credentialStore) + :this (new GitHubClient(productInformation, credentialStore)) + { + } + + public ObservableGitHubClient(ProductHeaderValue productInformation, Uri baseAddress) + :this(new GitHubClient(productInformation, baseAddress)) + { + } + + public ObservableGitHubClient(ProductHeaderValue productInformation, ICredentialStore credentialStore, Uri baseAddress) + :this(new GitHubClient(productInformation, credentialStore, baseAddress)) + { + + } public ObservableGitHubClient(IGitHubClient gitHubClient) { Ensure.ArgumentNotNull(gitHubClient, "githubClient"); diff --git a/Octokit.Reactive/Octokit.Reactive.csproj b/Octokit.Reactive/Octokit.Reactive.csproj index 05186304..a318c61b 100644 --- a/Octokit.Reactive/Octokit.Reactive.csproj +++ b/Octokit.Reactive/Octokit.Reactive.csproj @@ -41,6 +41,7 @@ + False ..\packages\Rx-Core.2.1.30214.0\lib\Net40\System.Reactive.Core.dll @@ -119,4 +120,4 @@ --> - + \ No newline at end of file