Beispiel #1
0
 private void CreateHost(Uri uri)
 {
     ServantHost = new NancyHost(uri, new Bootstrapper(), new HostConfiguration {
         UnhandledExceptionCallback = ex =>
         {
             var client = new Mindscape.Raygun4Net.RaygunClient("YtmedAsAZw/ptG3cy4bSXg==");
             client.Send(ex);
         }
     });
 }
Beispiel #2
0
 protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
 {
     base.ApplicationStartup(container, pipelines);
     pipelines.OnError.AddItemToEndOfPipeline((ctx, ex) =>
     {
         ErrorWriter.WriteEntry(ex.ToString(), EventLogEntryType.Error);
         var client = new Mindscape.Raygun4Net.RaygunClient("MpnyAIdZ9T5iQjP/NrOl3w==");
         new Thread(() => client.Send(ex)).Start();
         return null;
     });
 }
Beispiel #3
0
 protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
 {
     base.ApplicationStartup(container, pipelines);
     pipelines.OnError.AddItemToEndOfPipeline((ctx, ex) =>
     {
         ErrorWriter.WriteEntry(ex.ToString(), EventLogEntryType.Error);
         var client = new Mindscape.Raygun4Net.RaygunClient("MpnyAIdZ9T5iQjP/NrOl3w==");
         new Thread(() => client.Send(ex)).Start();
         return(null);
     });
 }
Beispiel #4
0
 private void CreateHost(Uri uri)
 {
     ServantHost = new NancyHost(uri, new Bootstrapper(), new HostConfiguration { UnhandledExceptionCallback = ex =>
         {
             var client = new Mindscape.Raygun4Net.RaygunClient("YtmedAsAZw/ptG3cy4bSXg==");
             client.Send(ex);
         } });
 }