Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Http dispatcher refactoring #393

Merged
merged 3 commits into from
Jul 19, 2021
Merged

Http dispatcher refactoring #393

merged 3 commits into from
Jul 19, 2021

Conversation

sjuarezgx
Copy link
Contributor

Changes in net core Http dispatcher to be able to support Azure Http functions.
Issue:90167

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@sjuarezgx sjuarezgx temporarily deployed to external-storage-tests July 15, 2021 21:34 Inactive
@sjuarezgx sjuarezgx temporarily deployed to external-storage-tests July 19, 2021 12:04 Inactive
@sjuarezgx sjuarezgx merged commit e41da28 into master Jul 19, 2021
@sjuarezgx sjuarezgx deleted the HttpDispatcherRefactoring branch July 19, 2021 12:43
claudiamurialdo added a commit that referenced this pull request May 25, 2022
Fixes the error:
System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
   at Microsoft.AspNetCore.Http.DefaultHttpContext.get_Session()
 According to:
https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AspNetCoreGuidance.md#do-not-store-ihttpcontextaccessorhttpcontext-in-a-field
claudiamurialdo added a commit that referenced this pull request May 31, 2022
…#596)

* Restore GxHttpContextAccesor lost at #393 Http dispatcher refactoring
Fixes the error:
System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
   at Microsoft.AspNetCore.Http.DefaultHttpContext.get_Session()
 According to:
https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AspNetCoreGuidance.md#do-not-store-ihttpcontextaccessorhttpcontext-in-a-field

* Remove unneeded Console.Writeline.

* Reduce max number of concurrent threads on test. Concurrency is tested anyway and test output gets smaller.

* Complete code for testing the error:
System.ObjectDisposedException: IFeatureCollection has been disposed.
Object name: 'Collection'.
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ThrowContextDisposed()
   at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.ContextDisposed()

* Fix build error on GXMultiCall.webExecute method.

* Add output message for unit test on dfrgtxt to diagnose failing tests.

* Specify full path for tests with FileIO to avoid conflict with aspnetcore tests since GxContext.StaticPhysicalPath() returns a different value depending on the context (web or batch).

* Set BaseDir for FullTextSearchTests.

* Override Write method for GxHttpAzureResponse because WriteAsync is not supported.

* Restore synchronous writing on httpreponse because GxHttpAzureResponse does not support it.
For writing json should be used WriteAsJsonAsync which is supported by GxHttpAzureResponse. Soon it will be analyzed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants