本文整理汇总了C#中Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext.Read方法的典型用法代码示例。如果您正苦于以下问题:C# XmlUnmarshallerContext.Read方法的具体用法?C# XmlUnmarshallerContext.Read怎么用?C# XmlUnmarshallerContext.Read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
的用法示例。
在下文中一共展示了XmlUnmarshallerContext.Read方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, CreateReusableDelegationSetResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 1;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("DelegationSet", targetDepth))
{
var unmarshaller = DelegationSetUnmarshaller.Instance;
response.DelegationSet = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
示例2: Unmarshall
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
DescribeSnapshotAttributeResponse response = new DescribeSnapshotAttributeResponse();
int targetDepth = 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("snapshotId", targetDepth))
{
response.SnapshotId = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("createVolumePermission/item", targetDepth))
{
response.CreateVolumePermissions.Add(CreateVolumePermissionUnmarshaller.GetInstance().Unmarshall(context));
continue;
}
if (context.TestExpression("productCodes/item", targetDepth))
{
response.ProductCodes.Add(ProductCodeUnmarshaller.GetInstance().Unmarshall(context));
continue;
}
}
}
return response;
}
示例3: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context,GetAccountSummaryResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("SummaryMap/entry", targetDepth))
{
KeyValueUnmarshaller<string, int, StringUnmarshaller, IntUnmarshaller> unmarshaller = new KeyValueUnmarshaller<string, int, StringUnmarshaller, IntUnmarshaller>(StringUnmarshaller.GetInstance(), IntUnmarshaller.GetInstance());
KeyValuePair<string, int> kvp = unmarshaller.Unmarshall(context);
response.SummaryMap.Add(kvp.Key, kvp.Value);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
示例4: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
CreateConfigurationSetEventDestinationResponse response = new CreateConfigurationSetEventDestinationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("CreateConfigurationSetEventDestinationResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
开发者ID:aws,项目名称:aws-sdk-net,代码行数:30,代码来源:CreateConfigurationSetEventDestinationResponseUnmarshaller.cs
示例5: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
AddSourceIdentifierToSubscriptionResponse response = new AddSourceIdentifierToSubscriptionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("AddSourceIdentifierToSubscriptionResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
开发者ID:JonathanHenson,项目名称:aws-sdk-net,代码行数:30,代码来源:AddSourceIdentifierToSubscriptionResponseUnmarshaller.cs
示例6: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, AssociateVPCWithHostedZoneResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 1;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("ChangeInfo", targetDepth))
{
var unmarshaller = ChangeInfoUnmarshaller.Instance;
response.ChangeInfo = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
示例7: Unmarshall
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
ModifyDBParameterGroupResponse response = new ModifyDBParameterGroupResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("ModifyDBParameterGroupResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
示例8: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context,ListSAMLProvidersResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("SAMLProviderList/member", targetDepth))
{
response.SAMLProviderList.Add(SAMLProviderListEntryUnmarshaller.GetInstance().Unmarshall(context));
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
示例9: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context,CreateInvalidationResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Invalidation", targetDepth))
{
response.Invalidation = InvalidationUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
IWebResponseData responseData = context.ResponseData;
if (responseData.IsHeaderPresent("Location"))
response.Location = responseData.GetHeaderValue("Location");
return;
}
示例10: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context,GetBucketLoggingResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("LoggingEnabled", targetDepth))
{
response.BucketLoggingConfig = LoggingEnabledUnmarshaller.Instance.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
示例11: Unmarshall
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
DescribeVolumeAttributeResponse response = new DescribeVolumeAttributeResponse();
int targetDepth = 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("volumeId", targetDepth))
{
response.VolumeId = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("autoEnableIO/value", targetDepth))
{
response.AutoEnableIO = BoolUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
if (context.TestExpression("productCodes/item", targetDepth))
{
response.ProductCodes.Add(ProductCodeUnmarshaller.GetInstance().Unmarshall(context));
continue;
}
}
}
return response;
}
示例12: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context,CancelJobResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Success", targetDepth))
{
response.Success = BoolUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
示例13: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context,VerifyDomainIdentityResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("VerificationToken", targetDepth))
{
response.VerificationToken = StringUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
示例14: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context,TerminateInstanceInAutoScalingGroupResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.Read())
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Activity", targetDepth))
{
response.Activity = ActivityUnmarshaller.GetInstance().Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return;
}
}
return;
}
开发者ID:jonathanbird,项目名称:aws-sdk-net,代码行数:30,代码来源:TerminateInstanceInAutoScalingGroupResponseUnmarshaller.cs
示例15: Unmarshall
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
SetIdentityFeedbackForwardingEnabledResponse response = new SetIdentityFeedbackForwardingEnabledResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("SetIdentityFeedbackForwardingEnabledResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
开发者ID:NathanSDunn,项目名称:aws-sdk-unity,代码行数:30,代码来源:SetIdentityFeedbackForwardingEnabledResponseUnmarshaller.cs