示例#1
0
        /// <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);
        }
示例#2
0
        /// <summary>
        /// Executes this request.
        /// </summary>
        /// <returns>Service response.</returns>
        internal RegisterConsentResponse Execute()
        {
            RegisterConsentResponse serviceResponse = (RegisterConsentResponse)this.InternalExecute();

            serviceResponse.ThrowIfNecessary();
            return(serviceResponse);
        }
示例#3
0
        /// <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;
 }