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
7 changes: 5 additions & 2 deletions dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,7 @@ public string StaticContentBase
set { staticContentBase = value; }

}

protected void exitApplication()
protected void ExitApp()
{
if (disconnectUserAtCleanup)
{
Expand All @@ -1333,7 +1332,11 @@ protected void exitApplication()
}
catch (Exception) {; }
}
}

protected void exitApplication()
{
ExitApp();
}

private bool IsGxAjaxRequest()
Expand Down
17 changes: 14 additions & 3 deletions dotnet/src/dotnetframework/GxClasses/Model/gxproc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,21 @@ public static WaitCallback PropagateCulture(WaitCallback action)
action(x);
};
}
protected void ExitApp()
{
exitApplication(BatchCursorHolder());
}
protected void exitApplication()
{
foreach (IGxDataStore ds in context.DataStores)
ds.Connection.FlushBatchCursors(this);
exitApplication(true);
}
private void exitApplication(bool flushBatchCursor)
{
if (flushBatchCursor)
{
foreach (IGxDataStore ds in context.DataStores)
ds.Connection.FlushBatchCursors(this);
}

if (IsMain)
dbgInfo?.OnExit();
Expand All @@ -103,7 +114,7 @@ protected void exitApplication()
#endif

}

protected virtual bool BatchCursorHolder() { return false; }
protected virtual void printHeaders(){}
protected virtual void printFooters(){}

Expand Down