コード例 #1
0
 /// <summary>
 /// Specify filter parameter with value '$filter=id gt 5 and name eq
 /// 'foo'&amp;$orderby=id&amp;$top=10'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task GetWithFilterAsync(this IOdataOperations operations, ODataQuery <OdataFilterInner> odataQuery = default(ODataQuery <OdataFilterInner>), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.GetWithFilterWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #2
0
 /// <summary>
 /// Specify filter parameter with value '$filter=id gt 5 and name eq
 /// 'foo'&amp;$orderby=id&amp;$top=10'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static void GetWithFilter(this IOdataOperations operations, ODataQuery <OdataFilterInner> odataQuery = default(ODataQuery <OdataFilterInner>))
 {
     operations.GetWithFilterAsync(odataQuery).GetAwaiter().GetResult();
 }
コード例 #3
0
 /// <summary>
 /// Specify filter parameter with value '$filter=id gt 5 and name eq
 /// 'foo'&amp;$orderby=id&amp;$top=10'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task GetWithFilterAsync(this IOdataOperations operations, Microsoft.Rest.Azure.OData.ODataQuery <OdataFilter> odataQuery = default(Microsoft.Rest.Azure.OData.ODataQuery <OdataFilter>), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     await operations.GetWithFilterWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false);
 }
コード例 #4
0
 /// <summary>
 /// Specify filter parameter with value '$filter=id gt 5 and name eq
 /// 'foo'&amp;$orderby=id&amp;$top=10'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static void GetWithFilter(this IOdataOperations operations, ODataQuery <OdataFilter> odataQuery = default(ODataQuery <OdataFilter>))
 {
     Task.Factory.StartNew(s => ((IOdataOperations)s).GetWithFilterAsync(odataQuery), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
コード例 #5
0
 /// <summary>
 /// Specify filter parameter with value '$filter=id gt 5 and name eq
 /// 'foo'&amp;$orderby=id&amp;$top=10'
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static void GetWithFilter(this IOdataOperations operations, Microsoft.Rest.Azure.OData.ODataQuery <OdataFilter> odataQuery = default(Microsoft.Rest.Azure.OData.ODataQuery <OdataFilter>))
 {
     System.Threading.Tasks.Task.Factory.StartNew(s => ((IOdataOperations)s).GetWithFilterAsync(odataQuery), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }