开发者

Use a Spring Object to add a ServiceRoute to the RouteTable

开发者 https://www.devze.com 2023-03-08 14:30 出处:网络
Is there a way to add a Spring Object to a ServiceRoute instead of a class type? This works but my ScenarioService has to have a parameterless constructor

Is there a way to add a Spring Object to a ServiceRoute instead of a class type?

This works but my ScenarioService has to have a parameterless constructor

RouteTable.Routes.Add(new ServiceRoute("services/scenarioservice", 
开发者_StackOverflow社区new WebServiceHostFactory(), typeof (Edu3.Core.Services.ScenarioService)));

I would like to use something like this but it doesn't work:

RouteTable.Routes.Add(new ServiceRoute("services/scenarioservice", 
new Spring.ServiceModel.Activation.WebServiceHostFactory(), 
typeof (Edu3.Core.Services.ScenarioService)));

Instead of providing a class type, I would need to provide a spring object.

0

精彩评论

暂无评论...
验证码 换一张
取 消