using Microsoft.Azure.Cosmos.Table; using Microsoft.Azure.Cosmos.Table.Queryable; using System; using System.Collections; using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Linq; using Azure; namespace TEAMModelOS.SDK.DI { public static class AzureCosmosExtensions { public static int RU(this Response response) { try { response.Headers.TryGetValue("x-ms-request-charge", out var value); var ru = Convert.ToInt32(value); return ru; } catch (Exception) { return 0; } } } }