Skip to content

Commit 00cc432

Browse files
Add Async methods for reorg.
1 parent a061e5e commit 00cc432

File tree

1 file changed

+21
-6
lines changed
  • dotnet/src/dotnetframework/GxClasses/Reorg

1 file changed

+21
-6
lines changed

dotnet/src/dotnetframework/GxClasses/Reorg/GXReorg.cs

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ namespace GeneXus.Reorg
77
using System.Reflection;
88
using System.Runtime.CompilerServices;
99
using System.Threading;
10+
using System.Threading.Tasks;
1011
using GeneXus.Application;
1112
using GeneXus.Configuration;
1213
using GeneXus.Data;
@@ -47,12 +48,26 @@ public virtual void cleanup() { }
4748

4849

4950
public GXReorganization()
50-
{
51-
DataStoreUtil.LoadDataStores(new GxContext()); //force to load dbms library (p.e. libmysql.dll 32x)
52-
_isMain = true;
53-
GxContext.isReorganization = true;
54-
GXLogging.Debug(log, "GXReorganization.Ctr()");
55-
}
51+
{
52+
DataStoreUtil.LoadDataStores(new GxContext()); //force to load dbms library (p.e. libmysql.dll 32x)
53+
_isMain = true;
54+
GxContext.isReorganization = true;
55+
GXLogging.Debug(log, "GXReorganization.Ctr()");
56+
}
57+
#if NETCORE
58+
protected virtual Task ExecutePrivateAsync()
59+
{
60+
return Task.CompletedTask;
61+
}
62+
protected virtual Task CleanupAsync() {
63+
return Task.CompletedTask;
64+
}
65+
protected virtual async Task ExecuteImplAsync()
66+
{
67+
await ExecutePrivateAsync();
68+
}
69+
#endif
70+
5671
protected virtual void ExecutePrivate()
5772
{
5873

0 commit comments

Comments
 (0)