diff --git a/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlDriverCS.cs b/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlDriverCS.cs index f06a97d60..54fb262e4 100644 --- a/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlDriverCS.cs +++ b/dotnet/src/dotnetframework/GxClasses/Data/GXDataMysqlDriverCS.cs @@ -97,7 +97,6 @@ protected override string BuildConnectionString(string datasourceName, string us string maxpoolSize = GetParameterValue(connstr, "Max Pool Size"); if (String.IsNullOrEmpty(maxpoolSize)) MAX_TRIES = 100; else MAX_TRIES = Convert.ToInt32(maxpoolSize); - GXLogging.Debug(log, "MAX_TRIES=" + MAX_TRIES); return connstr; } public override bool AllowsDuplicateParameters diff --git a/dotnet/src/extensions/Azure/Handlers/QueueHandler/QueueTriggerHandler.cs b/dotnet/src/extensions/Azure/Handlers/QueueHandler/QueueTriggerHandler.cs index 6551de9ac..01ae92cdc 100644 --- a/dotnet/src/extensions/Azure/Handlers/QueueHandler/QueueTriggerHandler.cs +++ b/dotnet/src/extensions/Azure/Handlers/QueueHandler/QueueTriggerHandler.cs @@ -78,7 +78,7 @@ private QueueMessage SetupMessage(FunctionContext context, string item) private void ProcessMessage(FunctionContext context, ILogger log, QueueMessage queueMessage) { CallMappings callmap = (CallMappings)_callmappings; - GxAzMappings map = callmap.mappings is object ? callmap.mappings.First(m => m.FunctionName == context.FunctionDefinition.Name) : null; + GxAzMappings map = (callmap!=null && callmap.mappings is object) ? callmap.mappings.First(m => m.FunctionName == context.FunctionDefinition.Name) : null; string gxProcedure = map is object ? map.GXEntrypoint : string.Empty; string exMessage; diff --git a/dotnet/src/extensions/Azure/Handlers/ServiceBusHandler/ServiceBusTriggerHandler.cs b/dotnet/src/extensions/Azure/Handlers/ServiceBusHandler/ServiceBusTriggerHandler.cs index 3d3b4fcfa..96685ff76 100644 --- a/dotnet/src/extensions/Azure/Handlers/ServiceBusHandler/ServiceBusTriggerHandler.cs +++ b/dotnet/src/extensions/Azure/Handlers/ServiceBusHandler/ServiceBusTriggerHandler.cs @@ -102,7 +102,7 @@ private Message SetupMessage(FunctionContext context, string item) private void ProcessMessage(FunctionContext context, ILogger log, Message message) { CallMappings callmap = (CallMappings)_callmappings; - GxAzMappings map = callmap.mappings is object ? callmap.mappings.First(m => m.FunctionName == context.FunctionDefinition.Name) : null; + GxAzMappings map = (callmap!=null && callmap.mappings is object) ? callmap.mappings.First(m => m.FunctionName == context.FunctionDefinition.Name) : null; string gxProcedure = map is object ? map.GXEntrypoint : string.Empty; string exMessage; diff --git a/dotnet/src/extensions/Azure/Handlers/TimerHandler/TimerTriggerHandler.cs b/dotnet/src/extensions/Azure/Handlers/TimerHandler/TimerTriggerHandler.cs index de65257b8..40378cedb 100644 --- a/dotnet/src/extensions/Azure/Handlers/TimerHandler/TimerTriggerHandler.cs +++ b/dotnet/src/extensions/Azure/Handlers/TimerHandler/TimerTriggerHandler.cs @@ -43,7 +43,7 @@ private void ProcessMessage(FunctionContext context, ILogger log, MyInfo TimerIn CallMappings callmap = (CallMappings)_callmappings; GxAzMappings map = callmap.mappings is object ? callmap.mappings.First(m => m.FunctionName == context.FunctionDefinition.Name) : null; - string gxProcedure = map is object ? map.GXEntrypoint : string.Empty; + string gxProcedure = (map != null && map is object) ? map.GXEntrypoint : string.Empty; string exMessage; if (!string.IsNullOrEmpty(gxProcedure))