Skip to content

Instantly share code, notes, and snippets.

@straubt1
Created August 21, 2015 12:36
Show Gist options
  • Save straubt1/6ff898d5d1c4d4312df2 to your computer and use it in GitHub Desktop.
Save straubt1/6ff898d5d1c4d4312df2 to your computer and use it in GitHub Desktop.
AOPinIoC_DataInstaller
public class DataInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Register(Component.For<ExceptionAspect>());
container.Register(Component.For<TimingAspect>());
container.Register(Component.For<IProjectData>()
.ImplementedBy<ProjectDataLocal>()
.Interceptors(
typeof(ExceptionAspect),
typeof(TimingAspect)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment