Hi @mythz,
I’m experiencing some strange behavior in my integration tests. When I set the HandlerFactoryPath value and run my unit tests I get a 404 response. If I remove/comment out the HandlerFactoryPath setting then it all works. Pretty weird… Here is an example of one AppSelfHost Base that works:
public class TestAppHost : AppSelfHostBase
{
public TestAppHost()
: base("Test Container",
typeof(HelloServices).Assembly)
{ }
public override void Configure(Container container)
{
SetConfig(new HostConfig()
{
ApiVersion = "v1",
WsdlServiceNamespace = "http://schemas.example.com/",
DebugMode = AppSettings.Get(nameof(HostConfig.DebugMode), true)
});
}
}
Here is the version that doesn’t:
public class TestAppHostWithHandlerFactoryPath : AppSelfHostBase
{
public TestAppHostWithHandlerFactoryPath()
: base("Test Container",
typeof(HelloServices).Assembly)
{ }
public override void Configure(Container container)
{
SetConfig(new HostConfig()
{
ApiVersion = "v1",
HandlerFactoryPath = "api", // comment this out and it works
WsdlServiceNamespace = "http://schemas.example.com/",
DebugMode = AppSettings.Get(nameof(HostConfig.DebugMode), true)
});
}
}
I’ve also created a repro of this here (link)
I couldn’t find anything documented on this so apologies if this is working as intended.
Thank you!