TylerBrinks/Snap — pull request #18 by samoshkin (2011-10-16 20:12:17+00:00)
Title: Ability to specify namespaces of types to intercept in a strongly typed manner.

Added some strongly-typed methods to IAspectConfiguration interface to be able to specify namespace of types to be intercepted in a strongly typed manner. The main idea is to avoid using strings.
Change a bit AspectUtility class to support this.

1) Include all types which have exactly the same namespace as a given type's one.

SnapConfiguration.For(container).Configure(c =>
{
// have the same namespace as IBadCode
c.IncludeNamespaceOf<DummyDependency>();
c.Bind<HandleErrorInterceptor>().To<HandleErrorAttribute>();
});

2) Include all types which have the same namespace prefix as a given type's namespace.

SnapConfiguration.For(container).Configure(c =>
{
// have the same namespace as IBadCode
c.IncludeNamespaceOf<DummyDependency>(true);
c.Bind<HandleErrorInterceptor>().To<HandleErrorAttribute>();
});