David Martines
unread,Jan 15, 2013, 10:52:48 AM1/15/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to agath...@googlegroups.com
Our app has over 600 request/response pairs (and we've still many features to implement). A performance degradation is noticed (over 100ms extra to each wcf call) when this many types are registered. I imagine something in WCF is looping over this list on each call. As a workaround, we clear the KnownTypeProvider on app startup after registering request/response assemblies. We've overriden the RequestDispatcher to dynamically register the request and response types as needed, and then clear again on disposal. This works well, but we've discovered a threading bug, since one thread may have cleared a type from the KnownTypeProvider that another thread still needs. Any ideas on how to do this properly?