You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure batch context is used only for batch processes (#1120)
* Ensure static _currentGxContext used for batch process is not accessed from a web app or http service.
* Keep compatibility in .net framework, when there is no current context in web application it must return null.
An error NullReferenceException was thrown by GxWebServicesConfig because GxContext.Current.SoapContext was null.
public object AfterReceiveRequest(ref System.ServiceModel.Channels.Message request, IClientChannel channel, InstanceContext instanceContext)
{
GxHelpers.GetSoapContext().AppendXml(request.ToString());
GxHelpers.GetSoapContext().EndMessage();
return null;
}
* Initialize HttpContext on GxContext.
* Ensure consistent behavior with .NET Framework when retrieving the current GxContext.
0 commit comments