Skip to content

Commit

Permalink
#188509201 Refactor: Disable instrumentation for netcore middleware (#94
Browse files Browse the repository at this point in the history
)

Refactor: Disable instrumentation for netcore middleware
Bump version to 1.5.1
  • Loading branch information
keyur9 authored Nov 8, 2024
1 parent 8f4d359 commit a5cc647
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Moesif.Middleware/Moesif.Middleware.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Moesif.Middleware</id>
<version>1.5.0</version>
<version>1.5.1</version>
<title>MoesifMiddleware</title>
<authors>Moesif</authors>
<owners>Moesif</owners>
Expand Down
2 changes: 1 addition & 1 deletion Moesif.Middleware/NetCore/Helpers/LoggerHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MOESIF_INSTRUMENT
//#define MOESIF_INSTRUMENT

using System;
using System.IO;
Expand Down
2 changes: 1 addition & 1 deletion Moesif.Middleware/NetCore/MoesifMiddlewareNetCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Moesif.Middleware.NetCore
{
public class MoesifMiddlewareNetCore
{
public static string APP_VERSION = "moesif-netcore/1.5.0";
public static string APP_VERSION = "moesif-netcore/1.5.1";
private readonly RequestDelegate _next;

public Dictionary<string, object> moesifOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public MoesifMiddlewareNetFramework(Dictionary<String,object> options) : base(nu
_logger = null;
loggerHelper = new LoggerHelper(_logger);
debug = loggerHelper.GetConfigBoolValues(moesifOptions, "LocalDebug", false);
client = new MoesifApiClient(moesifOptions["ApplicationId"].ToString(), "moesif-netframework/1.5.0", debug);
client = new MoesifApiClient(moesifOptions["ApplicationId"].ToString(), "moesif-netframework/1.5.1", debug);
userHelper = new UserHelper(); // Create a new instance of userHelper
companyHelper = new CompanyHelper(); // Create a new instane of companyHelper
clientIpHelper = new ClientIp(); // Create a new instance of client Ip
Expand All @@ -98,7 +98,7 @@ public MoesifMiddlewareNetFramework(OwinMiddleware next, Dictionary<string, obje
{
// Initialize client
debug = loggerHelper.GetConfigBoolValues(moesifOptions, "LocalDebug", false);
client = new MoesifApiClient(moesifOptions["ApplicationId"].ToString(), "moesif-netframework/1.5.0", debug);
client = new MoesifApiClient(moesifOptions["ApplicationId"].ToString(), "moesif-netframework/1.5.1", debug);
logBody = loggerHelper.GetConfigBoolValues(moesifOptions, "LogBody", true);
isBatchingEnabled = loggerHelper.GetConfigBoolValues(moesifOptions, "EnableBatching", true); // Enable batching
disableStreamOverride = loggerHelper.GetConfigBoolValues(moesifOptions, "DisableStreamOverride", false); // Reset Request Body position
Expand Down
4 changes: 2 additions & 2 deletions Moesif.Middleware/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,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("1.5.0")]
[assembly: AssemblyFileVersion("1.5.0")]
[assembly: AssemblyVersion("1.5.1")]
[assembly: AssemblyFileVersion("1.5.1")]

0 comments on commit a5cc647

Please sign in to comment.