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
2 changes: 1 addition & 1 deletion dotnet/src/dotnetframework/GxClasses/Model/GXBaseObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ protected virtual void ExecutePrivate()
{

}
#if NETCORE
internal static string GetObjectNameWithoutNamespace(string gxObjFullName)
{
string mainNamespace = Preferences.AppMainNamespace;
if (gxObjFullName.StartsWith(mainNamespace))
gxObjFullName = gxObjFullName.Remove(0, mainNamespace.Length + 1);
return gxObjFullName;
}
#if NETCORE
private void ExecuteUsingSpanCode()
{
string gxObjFullName = GetObjectNameWithoutNamespace(GetType().FullName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public virtual Task MethodBodyExecute(object key)
gxobject.webExecute();
return Task.CompletedTask;
}
if (!ProcessHeaders(_procWorker.GetType().Name))
if (!ProcessHeaders(GXBaseObject.GetObjectNameWithoutNamespace(_procWorker.GetType().FullName)))
return Task.CompletedTask;
_procWorker.IsMain = true;
if (bodyParameters == null)
Expand Down Expand Up @@ -303,7 +303,7 @@ public virtual Task MethodUrlExecute(object key)
{
return Task.CompletedTask;
}
if (!ProcessHeaders(_procWorker.GetType().Name))
if (!ProcessHeaders(GXBaseObject.GetObjectNameWithoutNamespace(_procWorker.GetType().FullName)))
return Task.CompletedTask;
_procWorker.IsMain = true;
IDictionary<string,object> queryParameters = ReadQueryParameters(this._variableAlias);
Expand Down