Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down