コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultGitHubUserFactory"/>, using
 /// the provided <paramref name="client"/>.
 /// </summary>
 /// <param name="client">The <see cref="IGitHubHttpClient"/> that should be used to retrieve information.</param>
 public DefaultGitHubUserFactory(IGitHubHttpClient client)
 {
     this.client = client;
 }
コード例 #2
0
 public GitHubController(IGitHubHttpClient client)
 {
     _gitHubHttpClient = client;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultGitHubFileContentExtractor"/> class,
 /// with the provided <paramref name="client"/>.
 /// </summary>
 /// <param name="client">The <see cref="IGitHubHttpClient"/> that should be used to communicate with the GitHub API.</param>
 public DefaultGitHubFileContentExtractor(IGitHubHttpClient client)
 {
     this.client = client;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultContributorModelFactory"/>, using
 /// the provided <paramref name="client"/>.
 /// </summary>
 /// <param name="client">The <see cref="IGitHubHttpClient"/> that should be used to retrieve information.</param>
 public DefaultContributorModelFactory(IGitHubHttpClient client)
 {
     this.client = client;
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultContributorModelFactory"/>, using
 /// the provided <paramref name="client"/>.
 /// </summary>
 /// <param name="client">The <see cref="IGitHubHttpClient"/> that should be used to retrieve information.</param>
 public DefaultContributorModelFactory(IGitHubHttpClient client)
 {
     this.client = client;
 }
コード例 #6
0
 /// <summary>
 /// Creates a new instance of the <see cref="DefaultDemoModelFactory"/> class, using the provided
 /// <paramref name="client"/>, <paramref name="githubFileContentExtractor"/> and <paramref name="repositoryNugetChecker"/>.
 /// </summary>
 /// <param name="client">The <see cref="IGitHubHttpClient"/> that should be used to communicate with GitHub.</param>
 /// <param name="githubFileContentExtractor"></param>
 /// <param name="repositoryNugetChecker">The <see cref="IRepositoryNugetChecker"/> that should be used to verify that a Nuget is available for the demo.</param>
 public DefaultDemoModelFactory(IGitHubHttpClient client, IGitHubFileContentExtractor githubFileContentExtractor, IRepositoryNugetChecker repositoryNugetChecker)
 {
     this.client = client;
     this.githubFileContentExtractor = githubFileContentExtractor;
     this.repositoryNugetChecker = repositoryNugetChecker;
 }
コード例 #7
0
 /// <summary>
 /// Creates a new instance of the <see cref="DefaultDemoModelFactory"/> class, using the provided
 /// <paramref name="client"/>, <paramref name="githubFileContentExtractor"/> and <paramref name="repositoryNugetChecker"/>.
 /// </summary>
 /// <param name="client">The <see cref="IGitHubHttpClient"/> that should be used to communicate with GitHub.</param>
 /// <param name="githubFileContentExtractor"></param>
 /// <param name="repositoryNugetChecker">The <see cref="IRepositoryNugetChecker"/> that should be used to verify that a Nuget is available for the demo.</param>
 public DefaultDemoModelFactory(IGitHubHttpClient client, IGitHubFileContentExtractor githubFileContentExtractor, IRepositoryNugetChecker repositoryNugetChecker)
 {
     this.client = client;
     this.githubFileContentExtractor = githubFileContentExtractor;
     this.repositoryNugetChecker     = repositoryNugetChecker;
 }