Skip to content

Instantly share code, notes, and snippets.

@kkozmic
Created November 11, 2010 02:57
Show Gist options
  • Save kkozmic/671913 to your computer and use it in GitHub Desktop.
Save kkozmic/671913 to your computer and use it in GitHub Desktop.
// in your IContributeComponentModelConstruction
protected virtual void CollectFromConfiguration(ComponentModel model)
{
if(Something())
{
var options = ProxyUtil.ObtainProxyOptions(model, true);
options.Selector = new ComponentReference<IInterceptorSelector>("someIdOrType");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment