public static async Task InsertDocumentIntoCosmosDB(string endpointUri, string key, TraceWriter log, CancellationToken cts, string summaryData) { var connection = await(FunctionRestCosmosBusinessLayer.GetConnectionHandleAsync(endpointUri, key, null, cts)).ConfigureAwait(false); if (connection != null) { // connection.CreateDocumentAsync("sfaApreenticeship") } }
public static Task <DocumentClient> GetConnectionHandleAsync(string endpointUrl, string primaryKey, TraceWriter log, CancellationToken cts) { return(FunctionRestCosmosBusinessLayer.GetConnectionHandleAsync(endpointUrl, primaryKey, log, cts)); }