开发者

RIA Services domain service factory in web.config

开发者 https://www.devze.com 2023-03-22 01:29 出处:网络
I have created a WCF RIA Services Class Library project which has a custom IDomainServiceFactory. Normally I would hook this up in Application_Start or something in a ASPNET project but this service w

I have created a WCF RIA Services Class Library project which has a custom IDomainServiceFactory. Normally I would hook this up in Application_Start or something in a ASPNET project but this service will also be used by third parties via a SOAP endpoint so I need a way to create it automatically.

Only wa开发者_高级运维y I can think of is via web.config. Is this possible? I can't seem to find any documentation on domain services configuration settings.


You could do this programmatically in this fashion:

public void SomeConfigurationMethod()
{
    DomainService.Factory = new YourDomainServiceFactory();
}
0

精彩评论

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