Skip to content

Commit

Permalink
Merge pull request #435 from MindscapeHQ/md/sup-172/oflline-storage-fix
Browse files Browse the repository at this point in the history
[SUP-172] Fix for offline storage being a shared location between clients
  • Loading branch information
mduncan26 committed Aug 17, 2020
2 parents b7f4b11 + 75c26de commit 6b66d44
Show file tree
Hide file tree
Showing 69 changed files with 2,289 additions and 1,269 deletions.
4 changes: 2 additions & 2 deletions AssemblyVersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.10.2.0")]
[assembly: AssemblyFileVersion("5.10.2.0")]
[assembly: AssemblyVersion("5.11.0.0")]
[assembly: AssemblyFileVersion("5.11.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Authors>Raygun</Authors>
<Description>.NetStandard library for targeting ASP.Net Core applications</Description>
<PackageId>Mindscape.Raygun4Net.AspNetCore</PackageId>
<PackageVersion>6.3.0</PackageVersion>
<PackageVersion>6.3.1</PackageVersion>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>https://github.com/MindscapeHQ/raygun4net/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/MindscapeHQ/raygun4net</PackageProjectUrl>
Expand Down
7 changes: 3 additions & 4 deletions Mindscape.Raygun4Net.AspNetCore/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Raygun4Net.AspNetCore")]
Expand All @@ -14,8 +13,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// Version information for an assembly consists of the following four values:
//
Expand All @@ -12,5 +10,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("6.3.0")]
[assembly: AssemblyFileVersion("6.3.0")]
[assembly: AssemblyVersion("6.3.1")]
[assembly: AssemblyFileVersion("6.3.1")]
File renamed without changes.
10 changes: 5 additions & 5 deletions Mindscape.Raygun4Net.AspNetCore/RaygunClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ namespace Mindscape.Raygun4Net.AspNetCore
public class RaygunClient : RaygunClientBase
{
protected readonly RaygunRequestMessageOptions _requestMessageOptions = new RaygunRequestMessageOptions();

private readonly ThreadLocal<HttpContext> _currentHttpContext = new ThreadLocal<HttpContext>(() => null);
private readonly ThreadLocal<RaygunRequestMessage> _currentRequestMessage = new ThreadLocal<RaygunRequestMessage>(() => null);
private readonly ThreadLocal<RaygunResponseMessage> _currentResponseMessage = new ThreadLocal<RaygunResponseMessage>(() => null);

public RaygunClient(string apiKey)
: this(new RaygunSettings {ApiKey = apiKey})
{
Expand Down Expand Up @@ -196,7 +196,7 @@ public bool UseKeyValuePairRawDataFilter

/// <summary>
/// Add an <see cref="IRaygunDataFilter"/> implementation to be used when capturing the raw data
/// of a HTTP request. This filter will be passed the request raw data and is expected to remove
/// of a HTTP request. This filter will be passed the request raw data and is expected to remove
/// or replace values whose keys are found in the list supplied to the Filter method.
/// </summary>
/// <param name="filter">Custom raw data filter implementation.</param>
Expand All @@ -211,13 +211,13 @@ protected override bool CanSend(RaygunMessage message)
{
return true;
}

RaygunSettings settings = GetSettings();
if (settings.ExcludedStatusCodes == null)
{
return true;
}

return !settings.ExcludedStatusCodes.Contains(message.Details.Response.StatusCode);
}

Expand Down
2 changes: 1 addition & 1 deletion Mindscape.Raygun4Net.Azure.WebJob.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
<file src="build\webjob\Mindscape.Raygun4Net4.dll" target="lib\net40\Mindscape.Raygun4Net4.dll" />
<file src="build\webjob\Mindscape.Raygun4Net4.pdb" target="lib\net40\Mindscape.Raygun4Net4.pdb" />

<file src="Mindscape.Raygun4Net.Azure.WebJob\readme.txt" />
<file src="Mindscape.Raygun4Net.Azure.WebJob\README.md" />
</files>
</package>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void Apikey_EmptyByDefault()
[Test]
public void ApiEndPoint_DefaultValue()
{
Assert.AreEqual("https://api.raygun.io/entries", RaygunSettings.Settings.ApiEndpoint.AbsoluteUri);
Assert.AreEqual("https://api.raygun.com/entries", RaygunSettings.Settings.ApiEndpoint.AbsoluteUri);
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@
<Compile Include="..\Mindscape.Raygun4Net\IRaygunMessageBuilder.cs">
<Link>IRaygunMessageBuilder.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Logging\IRaygunLogger.cs">
<Link>Logging\IRaygunLogger.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Logging\RaygunLogger.cs">
<Link>Logging\RaygunLogger.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Logging\RaygunLogLevel.cs">
<Link>Logging\RaygunLogLevel.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Messages\RaygunClientMessage.cs">
<Link>Messages\RaygunClientMessage.cs</Link>
</Compile>
Expand Down Expand Up @@ -106,6 +115,21 @@
<Compile Include="..\Mindscape.Raygun4Net\SimpleJson.cs">
<Link>SimpleJson.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Storage\IRaygunFile.cs">
<Link>Storage\IRaygunFile.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Storage\IRaygunOfflineStorage.cs">
<Link>Storage\IRaygunOfflineStorage.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Storage\RaygunFile.cs">
<Link>Storage\RaygunFile.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Storage\IsolatedRaygunOfflineStorage.cs">
<Link>Storage\IsolatedRaygunOfflineStorage.cs</Link>
</Compile>
<Compile Include="..\Mindscape.Raygun4Net\Utils\Singleton.cs">
<Link>Utils\Singleton.cs</Link>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RaygunClient.cs" />
<Compile Include="RaygunMessageBuilder.cs" />
Expand Down
9 changes: 4 additions & 5 deletions Mindscape.Raygun4Net.ClientProfile/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Raygun4Net.ClientProfile")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Raygun")]
[assembly: AssemblyProduct("Raygun4Net")]
[assembly: AssemblyCopyright("Copyright © Raygun 2015-2017")]
[assembly: AssemblyCopyright("Copyright © Raygun 2015-2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

Expand Down

0 comments on commit 6b66d44

Please sign in to comment.