internal RegisterDomainResponse RegisterDomain(RegisterDomainRequest request) { var marshaller = new RegisterDomainRequestMarshaller(); var unmarshaller = RegisterDomainResponseUnmarshaller.Instance; return(Invoke <RegisterDomainRequest, RegisterDomainResponse>(request, marshaller, unmarshaller)); }
public void RegisterDomainMarshallTest() { var request = InstantiateClassGenerator.Execute <RegisterDomainRequest>(); var marshaller = new RegisterDomainRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <RegisterDomainRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("RegisterDomain").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = RegisterDomainResponseUnmarshaller.Instance.Unmarshall(context) as RegisterDomainResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// Initiates the asynchronous execution of the RegisterDomain operation. /// <seealso cref="Amazon.Route53Domains.IAmazonRoute53Domains"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterDomain 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 <RegisterDomainResponse> RegisterDomainAsync(RegisterDomainRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RegisterDomainRequestMarshaller(); var unmarshaller = RegisterDomainResponseUnmarshaller.Instance; return(Invoke <IRequest, RegisterDomainRequest, RegisterDomainResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
public void RegisterDomainMarshallTest() { var request = InstantiateClassGenerator.Execute <RegisterDomainRequest>(); var marshaller = new RegisterDomainRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <RegisterDomainRequest>(request, jsonRequest); }
IAsyncResult invokeRegisterDomain(RegisterDomainRequest registerDomainRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new RegisterDomainRequestMarshaller().Marshall(registerDomainRequest); var unmarshaller = RegisterDomainResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// <para> Registers a new domain. </para> <para> <b>Access Control</b> </para> <para>You can use IAM policies to control this action's access /// to Amazon SWF resources as follows:</para> /// <ul> /// <li>You cannot use an IAM policy to control domain access for this action. The name of the domain being registered is available as the /// resource of this action.</li> /// <li>Use an <c>Action</c> element to allow or deny permission to call this action.</li> /// <li>You cannot use an IAM policy to constrain this action's parameters.</li> /// /// </ul> /// <para>If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified /// constraints, the action fails by throwing <c>OperationNotPermitted</c> . For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> /// .</para> /// </summary> /// /// <param name="registerDomainRequest">Container for the necessary parameters to execute the RegisterDomain service method on /// AmazonSimpleWorkflow.</param> /// /// <exception cref="T:Amazon.SimpleWorkflow.Model.DomainAlreadyExistsException" /> /// <exception cref="T:Amazon.SimpleWorkflow.Model.OperationNotPermittedException" /> /// <exception cref="T:Amazon.SimpleWorkflow.Model.LimitExceededException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<RegisterDomainResponse> RegisterDomainAsync(RegisterDomainRequest registerDomainRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RegisterDomainRequestMarshaller(); var unmarshaller = RegisterDomainResponseUnmarshaller.GetInstance(); return Invoke<IRequest, RegisterDomainRequest, RegisterDomainResponse>(registerDomainRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the RegisterDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterDomain 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<RegisterDomainResponse> RegisterDomainAsync(RegisterDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RegisterDomainRequestMarshaller(); var unmarshaller = RegisterDomainResponseUnmarshaller.Instance; return InvokeAsync<RegisterDomainRequest,RegisterDomainResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal RegisterDomainResponse RegisterDomain(RegisterDomainRequest request) { var marshaller = new RegisterDomainRequestMarshaller(); var unmarshaller = RegisterDomainResponseUnmarshaller.Instance; return Invoke<RegisterDomainRequest,RegisterDomainResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the RegisterDomain operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RegisterDomain operation on AmazonRoute53DomainsClient.</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 EndRegisterDomain /// operation.</returns> public IAsyncResult BeginRegisterDomain(RegisterDomainRequest request, AsyncCallback callback, object state) { var marshaller = new RegisterDomainRequestMarshaller(); var unmarshaller = RegisterDomainResponseUnmarshaller.Instance; return BeginInvoke<RegisterDomainRequest>(request, marshaller, unmarshaller, callback, state); }
public void RegisterDomainMarshallTest() { var request = InstantiateClassGenerator.Execute<RegisterDomainRequest>(); var marshaller = new RegisterDomainRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<RegisterDomainRequest>(request,jsonRequest); }
/// <summary> /// <para> Registers a new domain. </para> <para> <b>Access Control</b> </para> <para>You can use IAM policies to control this action's access /// to Amazon SWF resources as follows:</para> /// <ul> /// <li>You cannot use an IAM policy to control domain access for this action. The name of the domain being registered is available as the /// resource of this action.</li> /// <li>Use an <c>Action</c> element to allow or deny permission to call this action.</li> /// <li>You cannot use an IAM policy to constrain this action's parameters.</li> /// /// </ul> /// <para>If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified /// constraints, the action fails by throwing <c>OperationNotPermitted</c> . For details and example IAM policies, see <a href="http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF Workflows</a> /// .</para> /// </summary> /// /// <param name="registerDomainRequest">Container for the necessary parameters to execute the RegisterDomain service method on /// AmazonSimpleWorkflow.</param> /// /// <exception cref="T:Amazon.SimpleWorkflow.Model.DomainAlreadyExistsException" /> /// <exception cref="T:Amazon.SimpleWorkflow.Model.OperationNotPermittedException" /> /// <exception cref="T:Amazon.SimpleWorkflow.Model.LimitExceededException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<RegisterDomainResponse> RegisterDomainAsync(RegisterDomainRequest registerDomainRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RegisterDomainRequestMarshaller(); var unmarshaller = RegisterDomainResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, RegisterDomainRequest, RegisterDomainResponse>(registerDomainRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
public void RegisterDomainMarshallTest() { var request = InstantiateClassGenerator.Execute<RegisterDomainRequest>(); var marshaller = new RegisterDomainRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson<RegisterDomainRequest>(request,jsonRequest); var webResponse = new WebResponseData { Headers = { {"x-amzn-RequestId", Guid.NewGuid().ToString()}, {"x-amz-crc32","0"} } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("RegisterDomain").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = RegisterDomainResponseUnmarshaller.Instance.Unmarshall(context) as RegisterDomainResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Registers a new domain. </para> /// </summary> /// /// <param name="registerDomainRequest">Container for the necessary parameters to execute the RegisterDomain service method on /// AmazonSimpleWorkflow.</param> /// /// <exception cref="DomainAlreadyExistsException"/> /// <exception cref="OperationNotPermittedException"/> /// <exception cref="LimitExceededException"/> public RegisterDomainResponse RegisterDomain(RegisterDomainRequest registerDomainRequest) { IRequest<RegisterDomainRequest> request = new RegisterDomainRequestMarshaller().Marshall(registerDomainRequest); RegisterDomainResponse response = Invoke<RegisterDomainRequest, RegisterDomainResponse> (request, this.signer, RegisterDomainResponseUnmarshaller.GetInstance()); return response; }