本文整理汇总了C#中Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext.ReadAtDepth方法的典型用法代码示例。如果您正苦于以下问题:C# XmlUnmarshallerContext.ReadAtDepth方法的具体用法?C# XmlUnmarshallerContext.ReadAtDepth怎么用?C# XmlUnmarshallerContext.ReadAtDepth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Amazon.Runtime.Internal.Transform.XmlUnmarshallerContext
的用法示例。
在下文中一共展示了XmlUnmarshallerContext.ReadAtDepth方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, DescribePendingMaintenanceActionsResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Marker", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Marker = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PendingMaintenanceActions/ResourcePendingMaintenanceActions", targetDepth))
{
var unmarshaller = ResourcePendingMaintenanceActionsUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.PendingMaintenanceActions.Add(item);
continue;
}
}
}
return;
}
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:32,代码来源:DescribePendingMaintenanceActionsResponseUnmarshaller.cs
示例2: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, ListSAMLProvidersResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("SAMLProviderList/member", targetDepth))
{
var unmarshaller = SAMLProviderListEntryUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.SAMLProviderList.Add(item);
continue;
}
}
}
return;
}
示例3: 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)
{
DetachLoadBalancerFromSubnetsResponse response = new DetachLoadBalancerFromSubnetsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("DetachLoadBalancerFromSubnetsResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
示例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)
{
AttachVpnGatewayResponse response = new AttachVpnGatewayResponse();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth = 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("attachment", targetDepth))
{
var unmarshaller = VpcAttachmentUnmarshaller.Instance;
response.VpcAttachment = unmarshaller.Unmarshall(context);
continue;
}
}
}
return response;
}
示例5: Unmarshall
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
CreateSpotDatafeedSubscriptionResponse response = new CreateSpotDatafeedSubscriptionResponse();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth = 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("spotDatafeedSubscription", targetDepth))
{
var unmarshaller = SpotDatafeedSubscriptionUnmarshaller.Instance;
response.SpotDatafeedSubscription = unmarshaller.Unmarshall(context);
continue;
}
}
}
return response;
}
开发者ID:wmatveyenko,项目名称:aws-sdk-net,代码行数:25,代码来源:CreateSpotDatafeedSubscriptionResponseUnmarshaller.cs
示例6: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, ModifyDBParameterGroupResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("DBParameterGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DBParameterGroupName = unmarshaller.Unmarshall(context);
continue;
}
}
}
return;
}
示例7: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, GetRoleResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Role", targetDepth))
{
var unmarshaller = RoleUnmarshaller.Instance;
response.Role = unmarshaller.Unmarshall(context);
continue;
}
}
}
return;
}
示例8: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, ListEndpointsByPlatformApplicationResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Endpoints/member", targetDepth))
{
var unmarshaller = EndpointUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.Endpoints.Add(item);
continue;
}
if (context.TestExpression("NextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
}
return;
}
开发者ID:NathanSDunn,项目名称:aws-sdk-unity-samples,代码行数:32,代码来源:ListEndpointsByPlatformApplicationResponseUnmarshaller.cs
示例9: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, UpdateSAMLProviderResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("SAMLProviderArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SAMLProviderArn = unmarshaller.Unmarshall(context);
continue;
}
}
}
return;
}
示例10: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, RevokeCacheSecurityGroupIngressResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("CacheSecurityGroup", targetDepth))
{
var unmarshaller = CacheSecurityGroupUnmarshaller.Instance;
response.CacheSecurityGroup = unmarshaller.Unmarshall(context);
continue;
}
}
}
return;
}
示例11: 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)
{
ListEndpointsByPlatformApplicationResponse response = new ListEndpointsByPlatformApplicationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("ListEndpointsByPlatformApplicationResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
开发者ID:NathanSDunn,项目名称:aws-sdk-unity-samples,代码行数:30,代码来源:ListEndpointsByPlatformApplicationResponseUnmarshaller.cs
示例12: 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)
{
GetConsoleScreenshotResponse response = new GetConsoleScreenshotResponse();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth = 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("imageData", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ImageData = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("instanceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.InstanceId = unmarshaller.Unmarshall(context);
continue;
}
}
}
return response;
}
示例13: UnmarshallResult
private static void UnmarshallResult(XmlUnmarshallerContext context, GetContextKeysForCustomPolicyResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("ContextKeyNames/member", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.ContextKeyNames.Add(item);
continue;
}
}
}
return;
}
示例14: 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)
{
AuthorizeClusterSecurityGroupIngressResponse response = new AuthorizeClusterSecurityGroupIngressResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("AuthorizeClusterSecurityGroupIngressResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
开发者ID:rajdotnet,项目名称:aws-sdk-net,代码行数:30,代码来源:AuthorizeClusterSecurityGroupIngressResponseUnmarshaller.cs
示例15: Unmarshall
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
DescribeKeyPairsResponse response = new DescribeKeyPairsResponse();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth = 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("keySet/item", targetDepth))
{
var unmarshaller = KeyPairInfoUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.KeyPairs.Add(item);
continue;
}
}
}
return response;
}