internal GetBranchResponse GetBranch(GetBranchRequest request) { var marshaller = new GetBranchRequestMarshaller(); var unmarshaller = GetBranchResponseUnmarshaller.Instance; return(Invoke <GetBranchRequest, GetBranchResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetBranch operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBranch operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <GetBranchResponse> GetBranchAsync(GetBranchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetBranchRequestMarshaller(); var unmarshaller = GetBranchResponseUnmarshaller.Instance; return(InvokeAsync <GetBranchRequest, GetBranchResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetBranch operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBranch operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/GetBranch">REST API Reference for GetBranch Operation</seealso> public virtual Task <GetBranchResponse> GetBranchAsync(GetBranchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBranchResponseUnmarshaller.Instance; return(InvokeAsync <GetBranchResponse>(request, options, cancellationToken)); }
internal virtual GetBranchResponse GetBranch(GetBranchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBranchRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBranchResponseUnmarshaller.Instance; return(Invoke <GetBranchResponse>(request, options)); }
public async Task <ActionResult <CreateBranchResponse> > Get([FromBody] GetBranchRequest request) { var response = await _mediator.Send(request); if (response == null) { return(NotFound()); } return(Ok(response)); }
public DTO.Branch Get(GetBranchRequest request) { try { var branch = _branchRepository.FindBy(request.Id); branch.ThrowExceptionIfRecordIsNull(); return(_branchFactory.Execute(branch)); } catch (DataAccessException) { throw new ApplicationException(); } }
//= GetBranchInfo(codeCommit, repositoryName, refBranch); /// <summary> /// gets the commit information /// </summary> /// <param name="codeCommit"></param> /// <param name="repositoryName"></param> /// <param name="branchName"></param> /// <returns></returns> private GetBranchResponse GetBranchInfo(AmazonCodeCommitClient codeCommit, string repositoryName, string branchName) { GetBranchRequest branchRequest = new GetBranchRequest() { RepositoryName = repositoryName, BranchName = branchName }; GetBranchResponse returnValue = null; try { returnValue = codeCommit.GetBranchAsync(branchRequest).GetAwaiter().GetResult(); } catch (BranchDoesNotExistException) { returnValue = null; } return(returnValue); }
public Branch Get(GetBranchRequest request) { return(_branchService.Get(request)); }