/// <summary> /// Initiates the asynchronous execution of the ListOpenIDConnectProviders operation. /// <seealso cref="Amazon.IdentityManagement.IAmazonIdentityManagementService"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListOpenIDConnectProviders 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<ListOpenIDConnectProvidersResponse> ListOpenIDConnectProvidersAsync(ListOpenIDConnectProvidersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new ListOpenIDConnectProvidersRequestMarshaller(); var unmarshaller = ListOpenIDConnectProvidersResponseUnmarshaller.Instance; return InvokeAsync<ListOpenIDConnectProvidersRequest,ListOpenIDConnectProvidersResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal ListOpenIDConnectProvidersResponse ListOpenIDConnectProviders(ListOpenIDConnectProvidersRequest request) { var marshaller = new ListOpenIDConnectProvidersRequestMarshaller(); var unmarshaller = ListOpenIDConnectProvidersResponseUnmarshaller.Instance; return Invoke<ListOpenIDConnectProvidersRequest,ListOpenIDConnectProvidersResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the ListOpenIDConnectProviders operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListOpenIDConnectProviders operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListOpenIDConnectProviders /// operation.</returns> public IAsyncResult BeginListOpenIDConnectProviders(ListOpenIDConnectProvidersRequest request, AsyncCallback callback, object state) { var marshaller = new ListOpenIDConnectProvidersRequestMarshaller(); var unmarshaller = ListOpenIDConnectProvidersResponseUnmarshaller.Instance; return BeginInvoke<ListOpenIDConnectProvidersRequest>(request, marshaller, unmarshaller, callback, state); }
public void ListOpenIDConnectProvidersMarshallTest() { var operation = service_model.FindOperation("ListOpenIDConnectProviders"); var request = InstantiateClassGenerator.Execute<ListOpenIDConnectProvidersRequest>(); var marshaller = new ListOpenIDConnectProvidersRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = ListOpenIDConnectProvidersResponseUnmarshaller.Instance.Unmarshall(context) as ListOpenIDConnectProvidersResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the ListOpenIDConnectProviders operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListOpenIDConnectProviders operation on AmazonIdentityManagementServiceClient.</param> /// <param name="callback">An Action delegate that is invoked when the operation completes.</param> /// <param name="options">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> public void ListOpenIDConnectProvidersAsync(ListOpenIDConnectProvidersRequest request, AmazonServiceCallback<ListOpenIDConnectProvidersRequest, ListOpenIDConnectProvidersResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new ListOpenIDConnectProvidersRequestMarshaller(); var unmarshaller = ListOpenIDConnectProvidersResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<ListOpenIDConnectProvidersRequest,ListOpenIDConnectProvidersResponse> responseObject = new AmazonServiceResult<ListOpenIDConnectProvidersRequest,ListOpenIDConnectProvidersResponse>((ListOpenIDConnectProvidersRequest)req, (ListOpenIDConnectProvidersResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<ListOpenIDConnectProvidersRequest>(request, marshaller, unmarshaller, options, callbackHelper); }