Book Image

Learning NServiceBus - Second Edition

By : David Boike
Book Image

Learning NServiceBus - Second Edition

By: David Boike

Overview of this book

Table of Contents (18 chapters)
Learning NServiceBus Second Edition
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Assembly scanning


In order to do the things we have seen so far, such as automatically wiring up message handlers based on marker interfaces, NServiceBus needs to inspect all the assemblies in the application to find those types. By default, NServiceBus will scan all of the application's assemblies. For a web application, this means the bin directory. Otherwise, the application's base directory is used for scanning.

Many improvements have been made to the assembly scanning process over the last few versions of NServiceBus in order to automatically ignore assemblies that cannot be scanned. For example, COM DLLs are skipped, as are 64-bit assemblies if running with a 32-bit host process. As a result, this process generally works very well and if there is an issue, a helpful exception message will let you know how to correct the problem.