/// <summary> /// Lists a collection of schemas registered with service instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <GlobalSchemaContract> ListByService(this IGlobalSchemaOperations operations, string resourceGroupName, string serviceName, ODataQuery <GlobalSchemaContract> odataQuery = default(ODataQuery <GlobalSchemaContract>)) { return(operations.ListByServiceAsync(resourceGroupName, serviceName, odataQuery).GetAwaiter().GetResult()); }