internal ListEventSourcesResponse ListEventSources(ListEventSourcesRequest request) { var marshaller = new ListEventSourcesRequestMarshaller(); var unmarshaller = ListEventSourcesResponseUnmarshaller.Instance; return(Invoke <ListEventSourcesRequest, ListEventSourcesResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the ListEventSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListEventSources 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 <ListEventSourcesResponse> ListEventSourcesAsync(ListEventSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListEventSourcesRequestMarshaller(); var unmarshaller = ListEventSourcesResponseUnmarshaller.Instance; return(InvokeAsync <ListEventSourcesRequest, ListEventSourcesResponse>(request, marshaller, unmarshaller, cancellationToken)); }