C# Класс Microsoft.ApplicationServer.Http.Activation.HttpQueryableServiceHost.HttpQueryableBehavior.CountQueryComposer
Custom composer implementation that delegates all work to the WebApi built-in UrlComposer, but counts the total results before returning the response, and places the value in the call context.