public void BindAllInAssembly(Assembly assembly, Type type, string @namespace)
{
foreach (var pair in assembly.GetExportedTypes()
.Where(service => service.IsClass)
.SelectMany(service => service.GetInterfaces().Select(@interface => new KeyValuePair<Type, Type>(service, @interface)))
.Where(pair => pair.Key.Namespace.StartsWith(@namespace)))
{
Bind(pair.Value).To(pair.Key).InTransientScope();
}
}