public void GetStreamingDistributionConfigMarshallTest() { var operation = service_model.FindOperation("GetStreamingDistributionConfig"); var request = InstantiateClassGenerator.Execute <GetStreamingDistributionConfigRequest>(); var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var internalRequest = marshaller.Marshall(request); TestTools.RequestValidator.Validate("GetStreamingDistributionConfig", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { { "ETag", "ETag_Value" }, { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as GetStreamingDistributionConfigResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the GetStreamingDistributionConfig operation. /// <seealso cref="Amazon.CloudFront.IAmazonCloudFront"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig 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 <GetStreamingDistributionConfigResponse> GetStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance; return(Invoke <IRequest, GetStreamingDistributionConfigRequest, GetStreamingDistributionConfigResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
internal GetStreamingDistributionConfigResponse GetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request) { var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance; return(Invoke <GetStreamingDistributionConfigRequest, GetStreamingDistributionConfigResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetStreamingDistributionConfig operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig operation on AmazonCloudFrontClient.</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 EndGetStreamingDistributionConfig /// operation.</returns> public IAsyncResult BeginGetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request, AsyncCallback callback, object state) { var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance; return BeginInvoke<GetStreamingDistributionConfigRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// Get the configuration information about a streaming distribution. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig service method.</param> /// /// <returns>The response from the GetStreamingDistributionConfig service method, as returned by CloudFront.</returns> /// <exception cref="Amazon.CloudFront.Model.AccessDeniedException"> /// Access denied. /// </exception> /// <exception cref="Amazon.CloudFront.Model.NoSuchStreamingDistributionException"> /// The specified streaming distribution does not exist. /// </exception> public GetStreamingDistributionConfigResponse GetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request) { var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance; return Invoke<GetStreamingDistributionConfigRequest,GetStreamingDistributionConfigResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetStreamingDistributionConfig operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig 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<GetStreamingDistributionConfigResponse> GetStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance; return InvokeAsync<GetStreamingDistributionConfigRequest,GetStreamingDistributionConfigResponse>(request, marshaller, unmarshaller, cancellationToken); }
public void GetStreamingDistributionConfigMarshallTest() { var operation = service_model.FindOperation("GetStreamingDistributionConfig"); var request = InstantiateClassGenerator.Execute<GetStreamingDistributionConfigRequest>(); var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var internalRequest = marshaller.Marshall(request); RequestValidator.Validate("GetStreamingDistributionConfig", request, internalRequest, service_model); var webResponse = new WebResponseData { Headers = { {"ETag","ETag_Value"}, {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); ResponseUnmarshaller unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance; var response = unmarshaller.Unmarshall(context) as GetStreamingDistributionConfigResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeGetStreamingDistributionConfig(GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetStreamingDistributionConfigRequestMarshaller().Marshall(getStreamingDistributionConfigRequest); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> Get the configuration information about a streaming distribution. </para> /// </summary> /// /// <param name="getStreamingDistributionConfigRequest">Container for the necessary parameters to execute the GetStreamingDistributionConfig /// service method on AmazonCloudFront.</param> /// /// <returns>The response from the GetStreamingDistributionConfig service method, as returned by AmazonCloudFront.</returns> /// /// <exception cref="T:Amazon.CloudFront.Model.NoSuchStreamingDistributionException" /> /// <exception cref="T:Amazon.CloudFront.Model.AccessDeniedException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<GetStreamingDistributionConfigResponse> GetStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.GetInstance(); return Invoke<IRequest, GetStreamingDistributionConfigRequest, GetStreamingDistributionConfigResponse>(getStreamingDistributionConfigRequest, marshaller, unmarshaller, signer, cancellationToken); }
IAsyncResult invokeGetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// Initiates the asynchronous execution of the GetStreamingDistributionConfig operation. /// <seealso cref="Amazon.CloudFront.IAmazonCloudFront.GetStreamingDistributionConfig"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStreamingDistributionConfig 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 async Task<GetStreamingDistributionConfigResponse> GetStreamingDistributionConfigAsync(GetStreamingDistributionConfigRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetStreamingDistributionConfigRequestMarshaller(); var unmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetStreamingDistributionConfigRequest, GetStreamingDistributionConfigResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }