コード例 #1
0
 /// <inheritdoc/>
 public Task <bool> Push(string org, string repository)
 {
     try
     {
         return(_decoratedService.Push(org, repository));
     }
     catch (Exception ex)
     {
         LogError(ex, "Push", org, repository);
         throw;
     }
 }
コード例 #2
0
        public async Task <ActionResult <HttpResponseMessage> > Push(string org, string repository)
        {
            bool pushSuccess = await _sourceControl.Push(org, repository);

            if (pushSuccess)
            {
                return(new HttpResponseMessage(HttpStatusCode.OK));
            }
            else
            {
                return(new HttpResponseMessage(HttpStatusCode.InternalServerError));
            }
        }
コード例 #3
0
        public async Task <ActionResult> Push(string org, string repository)
        {
            bool pushSuccess = await _sourceControl.Push(org, repository);

            if (pushSuccess)
            {
                return(Ok());
            }
            else
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }
        }
コード例 #4
0
 public void Push(string owner, string repository)
 {
     _sourceControl.Push(owner, repository);
 }
コード例 #5
0
 public void Push(string org, string repository)
 {
     _sourceControl.Push(org, repository);
 }