private LogMetadata BuildResponseMetadata(LogMetadata logMetadata, HttpResponseMessage response)
 {
     logMetadata.ResponseStatusCode  = response.StatusCode;
     logMetadata.ResponseContentType = response.Content.Headers.ContentType.MediaType;
     logMetadata.ResponseTimestamp   = DateTime.Now;
     return(logMetadata);
 }
        private LogMetadata BuildRequestMetadata(HttpRequestMessage request)
        {
            LogMetadata log = new LogMetadata
            {
                RequestMethod    = request.Method.Method,
                RequestTimestamp = DateTime.Now,
                RequestUri       = request.RequestUri.ToString()
            };

            return(log);
        }
 private async Task <bool> SendToLog(LogMetadata logMetadata)
 {
     // TODO: Write code here to store the logMetadata instance to a pre-configured log store...
     return(true);
 }