开发者

Use a Spring Object to add a ServiceRoute to the RouteTable

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜