├── src
├── RollbarSharp.Mvc4Test
│ ├── Global.asax
│ ├── Views
│ │ ├── Main
│ │ │ └── Home.cshtml
│ │ └── Web.config
│ ├── App_Start
│ │ ├── WebApiConfig.cs
│ │ ├── RouteConfig.cs
│ │ └── FilterConfig.cs
│ ├── Global.asax.cs
│ ├── packages.config
│ ├── Controllers
│ │ └── MainController.cs
│ ├── Web.Debug.config
│ ├── RollbarSharp.Mvc4Test.v2.ncrunchproject
│ ├── Web.Release.config
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Web.config
│ └── RollbarSharp.Mvc4Test.csproj
├── RollbarSharp.Tests
│ ├── packages.config
│ ├── App.config
│ ├── Serialization
│ │ ├── NotifierModelTest.cs
│ │ ├── TraceModelTest.cs
│ │ └── ExceptionModelTest.cs
│ ├── RollbarSharp.Tests.v2.ncrunchproject
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── RollbarSharp.Tests.csproj
│ └── RollbarClientTest.cs
├── RollbarSharp
│ ├── packages.config
│ ├── Serialization
│ │ ├── BodyModel.cs
│ │ ├── ExceptionBodyModel.cs
│ │ ├── TraceModel.cs
│ │ ├── PayloadModel.cs
│ │ ├── PersonModel.cs
│ │ ├── NotifierModel.cs
│ │ ├── ExceptionModel.cs
│ │ ├── MessageBodyModel.cs
│ │ ├── ServerModel.cs
│ │ ├── FrameModel.cs
│ │ ├── RequestModel.cs
│ │ └── DataModel.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── project.json
│ ├── RequestStartingEventArgs.cs
│ ├── RequestCompletedEventArgs.cs
│ ├── Builders
│ │ ├── NotifierModelBuilder.cs
│ │ ├── ExceptionModelBuilder.cs
│ │ ├── BodyModelBuilder.cs
│ │ ├── PersonModelBuilder.cs
│ │ ├── TraceChainModelBuilder.cs
│ │ ├── ServerModelBuilder.cs
│ │ ├── FrameModelBuilder.cs
│ │ ├── RequestModelBuilder.cs
│ │ └── DataModelBuilder.cs
│ ├── RollbarHttpModule.cs
│ ├── RollbarSharp.nuspec
│ ├── RollbarSharp.v2.ncrunchproject
│ ├── Result.cs
│ ├── InternalExtensions.cs
│ ├── RollbarSharp.csproj
│ ├── IRollbarClient.cs
│ ├── Configuration.cs
│ └── RollbarClient.cs
├── RollbarSharp.46
│ ├── project.json
│ ├── RollbarSharp.46.xproj
│ └── project.lock.json
├── RollbarSharp.v2.ncrunchsolution
├── RollbarSharp.sln
└── RollbarSharp.46.sln
├── .gitignore
├── CHANGELOG.md
├── README.md
└── LICENSE.txt
/src/RollbarSharp.Mvc4Test/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="RollbarSharp.Mvc4Test.MvcApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/src/RollbarSharp.Tests/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/RollbarSharp/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/RollbarSharp.Mvc4Test/Views/Main/Home.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Index";
3 | }
4 |
5 |
Index
6 |
7 | Welcome, @User.Identity.Name
8 |
9 | @ViewBag.Vars
--------------------------------------------------------------------------------
/src/RollbarSharp.Tests/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/RollbarSharp/Serialization/BodyModel.cs:
--------------------------------------------------------------------------------
1 | namespace RollbarSharp.Serialization
2 | {
3 | ///
4 | /// There are two kinds of bodies: exceptions and messages
5 | ///
6 | public abstract class BodyModel
7 | {
8 | }
9 | }
--------------------------------------------------------------------------------
/src/RollbarSharp/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 | [assembly: AssemblyTitle("RollbarSharp")]
4 | [assembly: AssemblyDescription("RollbarSharp")]
5 | [assembly: AssemblyProduct("RollbarSharp")]
6 | [assembly: AssemblyVersion("0.3.3.0")]
7 |
--------------------------------------------------------------------------------
/src/RollbarSharp/project.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "1.0.0-*",
3 | "frameworks": {
4 | "net40": {
5 | "wrappedProject": "RollbarSharp.csproj",
6 | "bin": {
7 | "assembly": "obj/{configuration}/RollbarSharp.dll",
8 | "pdb": "obj/{configuration}/RollbarSharp.pdb"
9 | },
10 | "dependencies": {
11 | "Newtonsoft.Json": "5.0.1"
12 | }
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/src/RollbarSharp/RequestStartingEventArgs.cs:
--------------------------------------------------------------------------------
1 | namespace RollbarSharp
2 | {
3 | public class RequestStartingEventArgs
4 | {
5 | public string Payload { get; set; }
6 | public object UserParam { get; set; }
7 |
8 | public RequestStartingEventArgs(string payload, object userParam)
9 | {
10 | Payload = payload;
11 | UserParam = userParam;
12 | }
13 | }
14 | }
--------------------------------------------------------------------------------
/src/RollbarSharp/RequestCompletedEventArgs.cs:
--------------------------------------------------------------------------------
1 | namespace RollbarSharp
2 | {
3 | ///
4 | /// Event args fired when the response is received from the Rollbar endpoint
5 | ///
6 | public class RequestCompletedEventArgs
7 | {
8 | public Result Result { get; set; }
9 |
10 | public RequestCompletedEventArgs(Result result)
11 | {
12 | Result = result;
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | bin
2 | obj
3 | *.user
4 | *.suo
5 | *.cache
6 | *.log
7 | *.resharper
8 | packages
9 | .DS_Store
10 |
11 | # ignore specwatchr
12 | src/red.png
13 | src/green.png
14 | src/sidekick.bat
15 | src/sidekickapp.cs
16 | src/sidekickapp.exe
17 | src/watcher_dot_net.rb
18 | src/watchr.bat
19 | src/sidekick.bat
20 | src/sidekickapp.cs
21 | src/sidekickapp.exe
22 | specwatchr-usage.txt
23 | dotnet.watchr.rb
24 |
25 | # ignore publish stuff
26 | build/publish/lib/*/*.dll
27 | build/*.nupkg
28 | build/publish/*.nuspec
29 |
--------------------------------------------------------------------------------
/src/RollbarSharp.Mvc4Test/App_Start/WebApiConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web.Http;
5 |
6 | namespace RollbarSharp.Mvc4Test
7 | {
8 | public static class WebApiConfig
9 | {
10 | public static void Register(HttpConfiguration config)
11 | {
12 | config.Routes.MapHttpRoute(
13 | name: "DefaultApi",
14 | routeTemplate: "api/{controller}/{id}",
15 | defaults: new { id = RouteParameter.Optional }
16 | );
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/RollbarSharp.Mvc4Test/App_Start/RouteConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 | using System.Web.Routing;
7 |
8 | namespace RollbarSharp.Mvc4Test
9 | {
10 | public class RouteConfig
11 | {
12 | public static void RegisterRoutes(RouteCollection routes)
13 | {
14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15 |
16 | routes.MapRoute(
17 | name: "Default",
18 | url: "{controller}/{action}/{id}",
19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20 | );
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/RollbarSharp/Builders/NotifierModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using RollbarSharp.Serialization;
3 |
4 | namespace RollbarSharp.Builders
5 | {
6 | public static class NotifierModelBuilder
7 | {
8 | ///
9 | /// Creates a model representing this notifier binding itself.
10 | /// Will be reported as the assembly's name and currently compiled version.
11 | ///
12 | ///
13 | public static NotifierModel CreateFromAssemblyInfo()
14 | {
15 | var ai = Assembly.GetAssembly(typeof(NotifierModel)).GetName();
16 |
17 | return new NotifierModel(ai.Name, ai.Version.ToString());
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/RollbarSharp/Builders/ExceptionModelBuilder.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using RollbarSharp.Serialization;
4 |
5 | namespace RollbarSharp.Builders
6 | {
7 | public static class ExceptionModelBuilder
8 | {
9 | ///
10 | /// Converts an exception to an .
11 | ///
12 | public static ExceptionModel CreateFromException(Exception ex)
13 | {
14 | var m = new ExceptionModel(ex.GetType().Name, ex.Message);
15 |
16 | if (ex.Data.Count > 0)
17 | m.Data = ex.Data.Keys.Cast