diff --git a/Moesif.Middleware/NetCore/MoesifMiddlewareNetCore.cs b/Moesif.Middleware/NetCore/MoesifMiddlewareNetCore.cs index 520ca6f..513ea56 100644 --- a/Moesif.Middleware/NetCore/MoesifMiddlewareNetCore.cs +++ b/Moesif.Middleware/NetCore/MoesifMiddlewareNetCore.cs @@ -27,7 +27,7 @@ namespace Moesif.Middleware.NetCore { public class MoesifMiddlewareNetCore { - public static string APP_VERSION = "moesif-netcore/1.4.9"; + public static string APP_VERSION = "moesif-netcore/1.5.0"; private readonly RequestDelegate _next; public Dictionary moesifOptions; @@ -110,31 +110,31 @@ public MoesifMiddlewareNetCore(Dictionary _middleware) public MoesifMiddlewareNetCore(RequestDelegate next, Dictionary _middleware, ILoggerFactory logger) { - #if MOESIF_INSTRUMENT +#if MOESIF_INSTRUMENT Stopwatch stopwatch = stopwatch = new Stopwatch(); stopwatch.Start(); long createLoggerTime = 0; long createInitCientAndOptTime = 0; long fetchAppConfigTime = 0; long fetchGovRuleTime = 0; - #endif +#endif moesifOptions = _middleware; _logger = logger.CreateLogger("Moesif.Middleware.NetCore"); loggerHelper = new LoggerHelper(_logger); - #if MOESIF_INSTRUMENT +#if MOESIF_INSTRUMENT { createLoggerTime = stopwatch.ElapsedMilliseconds; stopwatch.Restart(); } - #endif +#endif try { // Initialize client debug = loggerHelper.GetConfigBoolValues(moesifOptions, "LocalDebug", false); - client = new MoesifApiClient(moesifOptions["ApplicationId"].ToString(), "moesif-netcore/1.4.9", debug); + client = new MoesifApiClient(moesifOptions["ApplicationId"].ToString(), APP_VERSION, debug); logBody = loggerHelper.GetConfigBoolValues(moesifOptions, "LogBody", true); isLambda = loggerHelper.GetConfigBoolValues(moesifOptions, "IsLambda", false); _next = next; @@ -161,12 +161,12 @@ public MoesifMiddlewareNetCore(RequestDelegate next, Dictionary apiVersion = null; } - #if MOESIF_INSTRUMENT +#if MOESIF_INSTRUMENT { createInitCientAndOptTime = stopwatch.ElapsedMilliseconds; stopwatch.Restart(); } - #endif +#endif //MoesifQueue = new ConcurrentQueue(); // Initialize queue //governance = Governance.getDefaultGovernance(); //configEvent = new AutoResetEvent(false); diff --git a/Moesif.Middleware/NetFramework/MoesifMiddlewareNetFramework.cs b/Moesif.Middleware/NetFramework/MoesifMiddlewareNetFramework.cs index 9fde198..442d8f1 100644 --- a/Moesif.Middleware/NetFramework/MoesifMiddlewareNetFramework.cs +++ b/Moesif.Middleware/NetFramework/MoesifMiddlewareNetFramework.cs @@ -82,7 +82,7 @@ public MoesifMiddlewareNetFramework(Dictionary options) : base(nu _logger = null; loggerHelper = new LoggerHelper(_logger); debug = loggerHelper.GetConfigBoolValues(moesifOptions, "LocalDebug", false); - client = new MoesifApiClient(moesifOptions["ApplicationId"].ToString(), "moesif-netframework/1.4.9", debug); + client = new MoesifApiClient(moesifOptions["ApplicationId"].ToString(), "moesif-netframework/1.5.0", 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 @@ -98,7 +98,7 @@ public MoesifMiddlewareNetFramework(OwinMiddleware next, Dictionary - + diff --git a/Moesif.NetFramework.Test/Moesif.NetFramework.Test.csproj b/Moesif.NetFramework.Test/Moesif.NetFramework.Test.csproj index d9e311e..81f35c9 100644 --- a/Moesif.NetFramework.Test/Moesif.NetFramework.Test.csproj +++ b/Moesif.NetFramework.Test/Moesif.NetFramework.Test.csproj @@ -80,8 +80,8 @@ ..\packages\Microsoft.Owin.4.2.2\lib\net45\Microsoft.Owin.dll - - ..\packages\Moesif.Api.2.0.8\lib\net45\Moesif.Api.dll + + ..\packages\Moesif.Api.2.0.9\lib\net45\Moesif.Api.dll ..\packages\Moq.4.12.0\lib\net45\Moq.dll diff --git a/Moesif.NetFramework.Test/packages.config b/Moesif.NetFramework.Test/packages.config index 15b5945..7de0557 100644 --- a/Moesif.NetFramework.Test/packages.config +++ b/Moesif.NetFramework.Test/packages.config @@ -12,7 +12,7 @@ - +