Skip to content

Commit 032dd44

Browse files
claudiamurialdoclaudiamurialdo
andcommitted
Add config key to enable ApplyBeforeConnectToWebSession. (#1200)
Co-authored-by: claudiamurialdo <c.murialdo@globant.com> (cherry picked from commit 9dbae04)
1 parent 81d8b4a commit 032dd44

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)