Skip to content

Instantly share code, notes, and snippets.

@anujb
Created March 3, 2015 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anujb/3eb0d162cdb244f63bec to your computer and use it in GitHub Desktop.
Save anujb/3eb0d162cdb244f63bec to your computer and use it in GitHub Desktop.
Logger.Info("Sending analytics request to Segment.io ..", props);
var start = DateTime.Now;
HttpResponseMessage response = null;
try {
//breakpoint hit
response = _client.SendAsync(request).Result;
} catch (System.Exception ex) {
Console.WriteLine(ex);
Logger.Error(ex.Message + ex.InnerException);
}
//breakpoint never fires
var duration = DateTime.Now - start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment