Skip to content

Commit

Permalink
Merge pull request #61 from RoushTech/release/0.6.3
Browse files Browse the repository at this point in the history
Open 0.6.3, remove key from source.
  • Loading branch information
StrangeWill authored Sep 4, 2017
2 parents 79135be + 95d9c75 commit 1622195
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# 0.6.2
# 0.6.3
<sup>Released: 2017/09/04</sup>

- Use per-request dependencies for handling RollbarClient to prevent errors.

# 0.6.2
<sup>Released: 2017/8/20</sup>

- Change method trace string to have full namespace, method name and parameters.
Expand Down
10 changes: 3 additions & 7 deletions src/RollbarDotNet/Core/ExceptionHandlerMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,22 @@
public class ExceptionHandlerMiddleware
{
public ExceptionHandlerMiddleware(
RequestDelegate next,
Rollbar rollbar)
RequestDelegate next)
{
this.Next = next;
this.Rollbar = rollbar;
}

protected RequestDelegate Next { get; set; }

protected Rollbar Rollbar { get; set; }

public async Task Invoke(HttpContext context)
public async Task Invoke(HttpContext context, Rollbar rollbar)
{
try
{
await this.Next(context);
}
catch(Exception exception)
{
var response = await this.Rollbar.SendException(exception);
var response = await rollbar.SendException(exception);
var rollbarResponseFeature = new RollbarResponseFeature
{
Handled = true,
Expand Down
2 changes: 1 addition & 1 deletion src/RollbarDotNet/RollbarDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description>Rollbar Integration for .NET Core</Description>
<Copyright>William Roush 2016-2017</Copyright>
<AssemblyTitle>RollbarDotNet</AssemblyTitle>
<VersionPrefix>0.6.2</VersionPrefix>
<VersionPrefix>0.6.3</VersionPrefix>
<Authors>William Roush</Authors>
<AssemblyName>RollbarDotNet</AssemblyName>
<PackageId>RollbarDotNet</PackageId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public WebDependencyInjectionTests()
.AddSingleton(mockHostingEnvironment.Object);
services.Configure<RollbarOptions>(o =>
{
o.AccessToken = Environment.GetEnvironmentVariable("ROLLBAR_TOKEN") ?? "992eb96a7d4b4d62bd529188bb8152cb";
o.AccessToken = Environment.GetEnvironmentVariable("ROLLBAR_TOKEN");
o.Environment = "Testing";
});

Expand Down

0 comments on commit 1622195

Please sign in to comment.