Skip to content

Commit 9dbae04

Browse files
claudiamurialdoclaudiamurialdo
andauthored
Add config key to enable ApplyBeforeConnectToWebSession. (#1200)
Co-authored-by: claudiamurialdo <c.murialdo@globant.com>
1 parent 18b8f7c commit 9dbae04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,9 @@ internal static string AppMainNamespace
877877
}
878878
internal static bool IsBeforeConnectEventConfigured()
879879
{
880-
return (Config.GetValueOf("EVENT_BEFORE_CONNECT", out string evtProcName) && !string.IsNullOrEmpty(evtProcName));
880+
881+
return (Config.GetValueOrEnvironmentVarOf("ApplyBeforeConnectToWebSession", out string value) && value == YES &&
882+
Config.GetValueOf("EVENT_BEFORE_CONNECT", out string evtProcName) && !string.IsNullOrEmpty(evtProcName));
881883
}
882884
internal static string DefaultDatastore
883885
{

0 commit comments

Comments
 (0)