internal GetBucketLoggingResponse GetBucketLogging(GetBucketLoggingRequest request) { var marshaller = new GetBucketLoggingRequestMarshaller(); var unmarshaller = GetBucketLoggingResponseUnmarshaller.Instance; return Invoke<GetBucketLoggingRequest,GetBucketLoggingResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetBucketLogging operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBucketLogging 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<GetBucketLoggingResponse> GetBucketLoggingAsync(GetBucketLoggingRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetBucketLoggingRequestMarshaller(); var unmarshaller = GetBucketLoggingResponseUnmarshaller.Instance; return InvokeAsync<GetBucketLoggingRequest,GetBucketLoggingResponse>(request, marshaller, unmarshaller, cancellationToken); }
IAsyncResult invokeGetBucketLogging(GetBucketLoggingRequest getBucketLoggingRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetBucketLoggingRequestMarshaller().Marshall(getBucketLoggingRequest); var unmarshaller = GetBucketLoggingResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the GetBucketLogging operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBucketLogging operation on AmazonS3Client.</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 GetBucketLoggingAsync(GetBucketLoggingRequest request, AmazonServiceCallback<GetBucketLoggingRequest, GetBucketLoggingResponse> callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var marshaller = new GetBucketLoggingRequestMarshaller(); var unmarshaller = GetBucketLoggingResponseUnmarshaller.Instance; Action<AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult<GetBucketLoggingRequest,GetBucketLoggingResponse> responseObject = new AmazonServiceResult<GetBucketLoggingRequest,GetBucketLoggingResponse>((GetBucketLoggingRequest)req, (GetBucketLoggingResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke<GetBucketLoggingRequest>(request, marshaller, unmarshaller, options, callbackHelper); }
/// <summary> /// Initiates the asynchronous execution of the GetBucketLogging operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBucketLogging operation on AmazonS3Client.</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 EndGetBucketLogging /// operation.</returns> public IAsyncResult BeginGetBucketLogging(GetBucketLoggingRequest request, AsyncCallback callback, object state) { var marshaller = new GetBucketLoggingRequestMarshaller(); var unmarshaller = GetBucketLoggingResponseUnmarshaller.Instance; return BeginInvoke<GetBucketLoggingRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Initiates the asynchronous execution of the GetBucketLogging operation. /// <seealso cref="Amazon.S3.IAmazonS3.GetBucketLogging"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBucketLogging 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<GetBucketLoggingResponse> GetBucketLoggingAsync(GetBucketLoggingRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetBucketLoggingRequestMarshaller(); var unmarshaller = GetBucketLoggingResponseUnmarshaller.GetInstance(); return Invoke<IRequest, GetBucketLoggingRequest, GetBucketLoggingResponse>(request, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para>Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the /// bucket owner.</para> /// </summary> /// /// <param name="getBucketLoggingRequest">Container for the necessary parameters to execute the GetBucketLogging service method on /// AmazonS3.</param> /// /// <returns>The response from the GetBucketLogging service method, as returned by AmazonS3.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<GetBucketLoggingResponse> GetBucketLoggingAsync(GetBucketLoggingRequest getBucketLoggingRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetBucketLoggingRequestMarshaller(); var unmarshaller = GetBucketLoggingResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetBucketLoggingRequest, GetBucketLoggingResponse>(getBucketLoggingRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }