internal DomainMetadataResponse DomainMetadata(DomainMetadataRequest request) { var marshaller = new DomainMetadataRequestMarshaller(); var unmarshaller = DomainMetadataResponseUnmarshaller.Instance; return(Invoke <DomainMetadataRequest, DomainMetadataResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DomainMetadata operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB.DomainMetadata"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DomainMetadata 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 <DomainMetadataResponse> DomainMetadataAsync(DomainMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DomainMetadataRequestMarshaller(); var unmarshaller = DomainMetadataResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DomainMetadataRequest, DomainMetadataResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DomainMetadata operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DomainMetadata 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 <DomainMetadataResponse> DomainMetadataAsync(DomainMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DomainMetadataRequestMarshaller(); var unmarshaller = DomainMetadataResponseUnmarshaller.Instance; return(InvokeAsync <DomainMetadataRequest, DomainMetadataResponse>(request, marshaller, unmarshaller, cancellationToken)); }
public void DomainMetadataMarshallTest() { var operation = service_model.FindOperation("DomainMetadata"); var request = InstantiateClassGenerator.Execute <DomainMetadataRequest>(); var marshaller = new DomainMetadataRequestMarshaller(); 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 = DomainMetadataResponseUnmarshaller.Instance.Unmarshall(context) as DomainMetadataResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Returns information about the domain, including when the domain was created, the number of items and attributes in the domain, and /// the size of the attribute names and values. </para> /// </summary> /// /// <param name="domainMetadataRequest">Container for the necessary parameters to execute the DomainMetadata service method on /// AmazonSimpleDB.</param> /// /// <returns>The response from the DomainMetadata service method, as returned by AmazonSimpleDB.</returns> /// /// <exception cref="T:Amazon.SimpleDB.Model.NoSuchDomainException" /> /// <exception cref="T:Amazon.SimpleDB.Model.MissingParameterException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<DomainMetadataResponse> DomainMetadataAsync(DomainMetadataRequest domainMetadataRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DomainMetadataRequestMarshaller(); var unmarshaller = DomainMetadataResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, DomainMetadataRequest, DomainMetadataResponse>(domainMetadataRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
/// <summary> /// Initiates the asynchronous execution of the DomainMetadata operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DomainMetadata 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<DomainMetadataResponse> DomainMetadataAsync(DomainMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DomainMetadataRequestMarshaller(); var unmarshaller = DomainMetadataResponseUnmarshaller.Instance; return InvokeAsync<DomainMetadataRequest,DomainMetadataResponse>(request, marshaller, unmarshaller, cancellationToken); }
/// <summary> /// Returns information about the domain, including when the domain was created, the /// number of items and attributes in the domain, and the size of the attribute names /// and values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DomainMetadata service method.</param> /// /// <returns>The response from the DomainMetadata service method, as returned by SimpleDB.</returns> /// <exception cref="MissingParameterException"> /// The request must contain the specified missing parameter. /// </exception> /// <exception cref="NoSuchDomainException"> /// The specified domain does not exist. /// </exception> public DomainMetadataResponse DomainMetadata(DomainMetadataRequest request) { var marshaller = new DomainMetadataRequestMarshaller(); var unmarshaller = DomainMetadataResponseUnmarshaller.Instance; return Invoke<DomainMetadataRequest,DomainMetadataResponse>(request, marshaller, unmarshaller); }
IAsyncResult invokeDomainMetadata(DomainMetadataRequest domainMetadataRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DomainMetadataRequestMarshaller().Marshall(domainMetadataRequest); var unmarshaller = DomainMetadataResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the DomainMetadata operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB.DomainMetadata"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DomainMetadata 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<DomainMetadataResponse> DomainMetadataAsync(DomainMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DomainMetadataRequestMarshaller(); var unmarshaller = DomainMetadataResponseUnmarshaller.GetInstance(); return Invoke<IRequest, DomainMetadataRequest, DomainMetadataResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the DomainMetadata operation. /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DomainMetadata operation on AmazonSimpleDBClient.</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 EndDomainMetadata /// operation.</returns> public IAsyncResult BeginDomainMetadata(DomainMetadataRequest request, AsyncCallback callback, object state) { var marshaller = new DomainMetadataRequestMarshaller(); var unmarshaller = DomainMetadataResponseUnmarshaller.Instance; return BeginInvoke<DomainMetadataRequest>(request, marshaller, unmarshaller, callback, state); }
public void DomainMetadataMarshallTest() { var operation = service_model.FindOperation("DomainMetadata"); var request = InstantiateClassGenerator.Execute<DomainMetadataRequest>(); var marshaller = new DomainMetadataRequestMarshaller(); 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 = DomainMetadataResponseUnmarshaller.Instance.Unmarshall(context) as DomainMetadataResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }