protected override void ProcessRecord()
 {
     AmazonSimpleDB client = base.GetClient();
     Amazon.SimpleDB.Model.DomainMetadataRequest request = new Amazon.SimpleDB.Model.DomainMetadataRequest();
     request.DomainName = this._DomainName;
     Amazon.SimpleDB.Model.DomainMetadataResponse response = client.DomainMetadata(request);
     base.WriteObject(response.DomainMetadataResult, true);
 }
        /// <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;
        }
		internal DomainMetadataResponse DomainMetadata(DomainMetadataRequest request)
        {
            var task = DomainMetadataAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                throw e.InnerException;
            }
        }
	    IAsyncResult AmazonSimpleDB.BeginDomainMetadata(DomainMetadataRequest request, AsyncCallback callback, object state)
	    {
	        throw new NotImplementedException();
	    }
	    DomainMetadataResponse AmazonSimpleDB.DomainMetadata(DomainMetadataRequest request)
	    {
	        throw new NotImplementedException();
	    }
        /// <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);
        }
        /// <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>
 /// Initiates the asynchronous execution of the DomainMetadata operation.
 /// <seealso cref="Amazon.SimpleDB.IAmazonSimpleDB.DomainMetadata"/>
 /// </summary>
 /// 
 /// <param name="domainMetadataRequest">Container for the necessary parameters to execute the DomainMetadata operation on
 ///          AmazonSimpleDB.</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 domainMetadataRequest, AsyncCallback callback, object state)
 {
     return invokeDomainMetadata(domainMetadataRequest, callback, state, false);
 }
 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>
 /// <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="NoSuchDomainException"/>
 /// <exception cref="MissingParameterException"/>
 public DomainMetadataResponse DomainMetadata(DomainMetadataRequest domainMetadataRequest)
 {
     IAsyncResult asyncResult = invokeDomainMetadata(domainMetadataRequest, null, null, true);
     return EndDomainMetadata(asyncResult);
 }
예제 #11
0
        /// <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);
        }
예제 #12
0
        /// <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="request">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" />
		public DomainMetadataResponse DomainMetadata(DomainMetadataRequest request)
        {
            var task = DomainMetadataAsync(request);
            try
            {
                return task.Result;
            }
            catch(AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return null;
            }
        }
        /// <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);
        }
예제 #14
0
        private void DomainMetadataButton_Click(object sender, RoutedEventArgs e)
        {
            SimpleDB.Client.OnSimpleDBResponse += DomainMetadataWebResponse;

            DomainMetadataRequest request = new DomainMetadataRequest() { DomainName = this.DomainName };
            SimpleDB.Client.BeginDomainMetadata(request);
        }