示例#1
0
        /// <summary>
        /// Creates Service to work with users.
        /// </summary>
        /// <returns>Instance that implements IUserService.</returns>
        public IUserService CreateUserService()
        {
            var sender      = new HttpRequestSender(this.accessToken);
            var userService = new UserService(sender);

            return(userService);
        }
示例#2
0
        /// <summary>
        /// Creates Service to work with commits.
        /// </summary>
        /// <returns>Instance that implements ICommitService.</returns>
        public ICommitService CreateCommitServcie()
        {
            var sender        = new HttpRequestSender(this.accessToken);
            var commitService = new CommitService(sender);

            return(commitService);
        }
示例#3
0
        /// <summary>
        /// Creates Service to work with repositories.
        /// </summary>
        /// <returns>Instance that implements IRepositoryService.</returns>
        public IRepositoryService CreateRepositoryService()
        {
            var sender            = new HttpRequestSender(this.accessToken);
            var repositoryService = new RepositoryService(sender);

            return(repositoryService);
        }
示例#4
0
        /// <summary>
        /// Creates Service to work with branches.
        /// </summary>
        /// <returns>Instance that implements IBranchService.</returns>
        public IBranchService CreateBranchService()
        {
            var sender        = new HttpRequestSender(this.accessToken);
            var branchService = new BranchService(sender);

            return(branchService);
        }