/// <summary> /// Executes this request. /// </summary> /// <returns>Service response.</returns> internal async Task <RegisterConsentResponse> Execute(CancellationToken token) { RegisterConsentResponse serviceResponse = (RegisterConsentResponse)await this.InternalExecuteAsync(token).ConfigureAwait(false); serviceResponse.ThrowIfNecessary(); return(serviceResponse); }
/// <summary> /// Executes this request. /// </summary> /// <returns>Service response.</returns> internal RegisterConsentResponse Execute() { RegisterConsentResponse serviceResponse = (RegisterConsentResponse)this.InternalExecute(); serviceResponse.ThrowIfNecessary(); return(serviceResponse); }
/// <summary> /// Parses the response. /// </summary> /// <param name="reader">The reader.</param> /// <returns>Response object.</returns> internal override object ParseResponse(EwsServiceXmlReader reader) { RegisterConsentResponse response = new RegisterConsentResponse(); response.LoadFromXml(reader, XmlElementNames.RegisterConsentResponse); return(response); }
/// <summary> /// Parses the response. /// </summary> /// <param name="reader">The reader.</param> /// <returns>Response object.</returns> internal override object ParseResponse(EwsServiceXmlReader reader) { RegisterConsentResponse response = new RegisterConsentResponse(); response.LoadFromXml(reader, XmlElementNames.RegisterConsentResponse); return response; }