static void Main() { ErrorListSubmitRequest errorListSubmitRequest = SampleRequestFixture.CreateErrorListSubmitRequest(); IElmahRApiClient apiClient = new ElmahRNancyClient("http://dashboard.elmahrnancyapi.com/"); ErrorSubmitResponse response = apiClient.Post(errorListSubmitRequest); Console.WriteLine("Status : {0}, Message : {1}", response.Status, response.StatusMessage); Console.ReadKey(); }
private static void PostSampleError(string detail) { ErrorListSubmitRequest errorListSubmitRequest = SampleRequestFixture.CreateErrorListSubmitRequest("Win Service Source", detail); IElmahRApiClient apiClient = new ElmahRNancyClient("http://dashboard.elmahrnancyapi.com/"); apiClient.Post(errorListSubmitRequest); }