コード例 #1
0
 /// <summary>
 /// Get a single GitHub App Installation (requires GitHubApp JWT token auth).
 /// </summary>
 /// <param name="installationId">The Id of the GitHub App Installation.</param>
 /// <remarks>
 /// https://developer.github.com/v3/apps/#get-a-single-installation
 /// </remarks>
 /// <returns></returns>
 public async Task <Installation> GetInstallationAsync(long installationId)
 {
     return(await _gitHubAppsClient.GetInstallation(installationId));
 }
コード例 #2
0
 /// <summary>
 /// Get a single GitHub App Installation (requires GitHubApp JWT token auth).
 /// </summary>
 /// <remarks>https://developer.github.com/v3/apps/#get-a-single-installation</remarks>
 /// <param name="installationId">The Id of the GitHub App Installation</param>
 public IObservable <Installation> GetInstallation(long installationId)
 {
     return(_client.GetInstallation(installationId).ToObservable());
 }