Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 2nd, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Intercepting singleton instances
  2. ,Component.For<ApiInterceptor>()
  3.  
  4. , AllTypes.FromAssemblyContaining<MyServiceContract>()
  5.     .Where(Component.IsInSameNamespaceAs<MyServiceContract>())
  6.     .Configure(c => c.Interceptors(typeof(ApiInterceptor)))
  7.     .Configure(c => c.LifeStyle.Singleton)