NetworkEvents() public static method

Returns the Uri for the network of repositories.
public static NetworkEvents ( string owner, string name ) : Uri
owner string The owner of the repository
name string The name of the repository
return System.Uri
Esempio n. 1
0
        /// <summary>
        /// Gets all the events for a given repository network
        /// </summary>
        /// <remarks>
        /// http://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories
        /// </remarks>
        /// <param name="owner">The owner of the repository</param>
        /// <param name="name">The name of the repository</param>
        /// <returns>All the <see cref="Activity"/>s for the particular repository network.</returns>
        public Task <IReadOnlyList <Activity> > GetAllForRepositoryNetwork(string owner, string name)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
            Ensure.ArgumentNotNullOrEmptyString(name, "name");

            return(ApiConnection.GetAll <Activity>(ApiUrls.NetworkEvents(owner, name)));
        }
        public Task <IReadOnlyList <Activity> > GetAllForRepositoryNetwork(string owner, string name, ApiOptions options)
        {
            Ensure.ArgumentNotNullOrEmptyString(owner, nameof(owner));
            Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
            Ensure.ArgumentNotNull(options, nameof(options));

            return(ApiConnection.GetAll <Activity>(ApiUrls.NetworkEvents(owner, name), options));
        }