Created
August 21, 2015 12:36
-
-
Save straubt1/6ff898d5d1c4d4312df2 to your computer and use it in GitHub Desktop.
AOPinIoC_DataInstaller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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