Hi we have a Servicestack implemented using AppSeltHostbase.Service stack has configured the webhost path as well.
It is hosted with baseurl “https://domain/Abc/Def”.
Wisej is its own project that currently uses Owin hosting. How can we integrate wisej with Serviestack hosting. Its ok to remove owin hosting.
Wisej URL should path be “https://domain/Abc/Def/WisejViewer”
That’s going to depend on whether that product supports self-hosted .NET Hosts.
You’ll likely need to intercept the Request and delegate that to a different handler to handle it. Take a look at Order of Operations docs for the order in which Requests are processed and the different extension points you can use to intercept the request.
Typically you’d want to delegate the request as early as possible, in which case you should register a RawHttpHandlers
. Here’s an example of how the SSE Feature uses it to handle SSE Requests based on different Request paths:
If you’re using .NET Framework you can return any ASP .NET IHttpHandler
, for .NET Core you’d want to inherit the HttpAsyncTaskHandler
base class and implement ProcessRequestAsync()
.