Skip to content

Commit 9a48de9

Browse files
The smart devices cache was not working for services in modules (#913)
* The smart devices cache was not working for services in modules, as it failed to consider the full name when checking for smart devices data caching on the server side * Fix build error on .NET framework.
1 parent f803e9a commit 9a48de9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dotnet/src/dotnetframework/GxClasses/Model/GXBaseObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ protected virtual void ExecutePrivate()
6060
{
6161

6262
}
63-
#if NETCORE
6463
internal static string GetObjectNameWithoutNamespace(string gxObjFullName)
6564
{
6665
string mainNamespace = Preferences.AppMainNamespace;
6766
if (gxObjFullName.StartsWith(mainNamespace))
6867
gxObjFullName = gxObjFullName.Remove(0, mainNamespace.Length + 1);
6968
return gxObjFullName;
7069
}
70+
#if NETCORE
7171
private void ExecuteUsingSpanCode()
7272
{
7373
string gxObjFullName = GetObjectNameWithoutNamespace(GetType().FullName);

dotnet/src/dotnetframework/GxClasses/Services/GxRestWrapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public virtual Task MethodBodyExecute(object key)
118118
gxobject.webExecute();
119119
return Task.CompletedTask;
120120
}
121-
if (!ProcessHeaders(_procWorker.GetType().Name))
121+
if (!ProcessHeaders(GXBaseObject.GetObjectNameWithoutNamespace(_procWorker.GetType().FullName)))
122122
return Task.CompletedTask;
123123
_procWorker.IsMain = true;
124124
if (bodyParameters == null)
@@ -303,7 +303,7 @@ public virtual Task MethodUrlExecute(object key)
303303
{
304304
return Task.CompletedTask;
305305
}
306-
if (!ProcessHeaders(_procWorker.GetType().Name))
306+
if (!ProcessHeaders(GXBaseObject.GetObjectNameWithoutNamespace(_procWorker.GetType().FullName)))
307307
return Task.CompletedTask;
308308
_procWorker.IsMain = true;
309309
IDictionary<string,object> queryParameters = ReadQueryParameters(this._variableAlias);

0 commit comments

Comments
 (0)