/// <summary>
 /// Gets all public keys for the authenticated user.
 /// </summary>
 /// <remarks>
 /// https://developer.github.com/v3/users/keys/#list-your-public-keys
 /// </remarks>
 /// <returns></returns>
 public IObservable <PublicKey> GetAllForCurrent()
 {
     return(_client.GetAllForCurrent().ToObservable().SelectMany(k => k));
 }
예제 #2
0
        /// <summary>
        /// Gets all public keys for the authenticated user.
        /// </summary>
        /// <remarks>
        /// https://developer.github.com/v3/users/keys/#list-your-public-keys
        /// </remarks>
        /// <param name="options">Options to change API's behavior.</param>
        /// <returns>Lists the current user's keys.</returns>
        public IObservable <PublicKey> GetAllForCurrent(ApiOptions options)
        {
            Ensure.ArgumentNotNull(options, "options");

            return(_client.GetAllForCurrent(options).ToObservable().SelectMany(k => k));
        }