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();
}
精彩评论