public void getData() { if (doc.ComponentDefinition.Parameters.CustomParameterGroups.Count != 0) { CustomParameterGroup group = doc.ComponentDefinition.Parameters.CustomParameterGroups[def.Text]; parX = null; parY = null; foreach (Parameter item in group) { if (item.Name.EndsWith("Смещение")) { parX = item; } if (item.Name.EndsWith("СмещениеY")) { parY = item; } } } if (doc.ComponentDefinition.Parameters.DerivedParameterTables.Count != 0) { foreach (DerivedParameter item in doc.ComponentDefinition.Parameters.DerivedParameterTables[1].DerivedParameters) { if (item.Name == def.Text + "Смещение") { parX = item as Parameter; } if (item.Name == def.Text + "СмещениеY") { parY = item as Parameter; } } } }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextLink'> /// Next link for list operation. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Product> > NextFragmentWithGroupingAsync(this IPagingOperations operations, string nextLink, CustomParameterGroup customParameterGroup, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.NextFragmentWithGroupingWithHttpMessagesAsync(nextLink, customParameterGroup, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextLink'> /// Next link for list operation. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> public static IPage <Product> NextFragmentWithGrouping(this IPagingOperations operations, string nextLink, CustomParameterGroup customParameterGroup) { return(operations.NextFragmentWithGroupingAsync(nextLink, customParameterGroup).GetAwaiter().GetResult()); }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment with /// parameters grouped /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> public static IPage <Product> GetMultiplePagesFragmentWithGroupingNextLink(this IPagingOperations operations, CustomParameterGroup customParameterGroup) { return(operations.GetMultiplePagesFragmentWithGroupingNextLinkAsync(customParameterGroup).GetAwaiter().GetResult()); }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextLink'> /// Next link for list operation. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> public static IPage <Product> NextFragmentWithGrouping(this IPagingOperations operations, string nextLink, CustomParameterGroup customParameterGroup) { return(Task.Factory.StartNew(s => ((IPagingOperations)s).NextFragmentWithGroupingAsync(nextLink, customParameterGroup), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextLink'> /// Next link for list operation. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<Microsoft.Rest.Azure.IPage<Product>> NextFragmentWithGroupingAsync(this IPagingOperations operations, string nextLink, CustomParameterGroup customParameterGroup, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.NextFragmentWithGroupingWithHttpMessagesAsync(nextLink, customParameterGroup, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextLink'> /// Next link for list operation. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> public static Microsoft.Rest.Azure.IPage<Product> NextFragmentWithGrouping(this IPagingOperations operations, string nextLink, CustomParameterGroup customParameterGroup) { return System.Threading.Tasks.Task.Factory.StartNew(s => ((IPagingOperations)s).NextFragmentWithGroupingAsync(nextLink, customParameterGroup), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment with /// parameters grouped /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Microsoft.Rest.Azure.IPage <Product> > GetMultiplePagesFragmentWithGroupingNextLinkAsync(this IPagingOperations operations, CustomParameterGroup customParameterGroup, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetMultiplePagesFragmentWithGroupingNextLinkWithHttpMessagesAsync(customParameterGroup, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment with /// parameters grouped /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> public static Microsoft.Rest.Azure.IPage <Product> GetMultiplePagesFragmentWithGroupingNextLink(this IPagingOperations operations, CustomParameterGroup customParameterGroup) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IPagingOperations)s).GetMultiplePagesFragmentWithGroupingNextLinkAsync(customParameterGroup), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment with /// parameters grouped /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<Product>> GetMultiplePagesFragmentWithGroupingNextLinkAsync(this IPagingOperations operations, CustomParameterGroup customParameterGroup, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetMultiplePagesFragmentWithGroupingNextLinkWithHttpMessagesAsync(customParameterGroup, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } }
/// <summary> /// A paging operation that doesn't return a full URL, just a fragment with /// parameters grouped /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='customParameterGroup'> /// Additional parameters for the operation /// </param> public static IPage<Product> GetMultiplePagesFragmentWithGroupingNextLink(this IPagingOperations operations, CustomParameterGroup customParameterGroup) { return Task.Factory.StartNew(s => ((IPagingOperations)s).GetMultiplePagesFragmentWithGroupingNextLinkAsync(customParameterGroup), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }