You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nservicebus/hosting/assembly-scanning.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Assembly scanning
3
3
summary: To enable automatic detection of various features NServiceBus scans assemblies for well known types
4
-
reviewed: 2022-02-15
4
+
reviewed: 2024-10-24
5
5
component: core
6
6
redirects:
7
7
- nservicebus/assembly-scanning
@@ -11,8 +11,8 @@ NServiceBus scans assemblies at endpoint startup to automatically detect and loa
11
11
12
12
There are some cases where finer control over which assemblies are loaded is required:
13
13
14
-
* To limit the number of assemblies being scanned and hence provide improvements to startup time.
15
-
* If hosting multiple endpoints out of the same directory each endpoint may require a subset of assemblies to be loaded.
14
+
* To limit the number of assemblies being scanned and hence improve startup time.
15
+
* If hosting multiple endpoints out of the same directory, each endpoint may require loading a subset of assemblies.
16
16
17
17
> [!NOTE]
18
18
> NServiceBus extensions such as `NServiceBus.RavenDB.dll` are not considered a core assembly but still must be included when customizing the assembly scanning.
By default all assemblies in the endpoint's `bin` directory are scanned in search of related interfaces so that the endpoint can configure them automatically.
28
+
By default, all assemblies in the endpoint's `bin` directory are scanned for related interfaces so that the endpoint can configure them automatically.
29
29
30
30
### Additional assembly scanning path
31
31
32
32
> [!NOTE]
33
33
> This configuration option is available only in NServiceBus version 7.4 and above.
34
34
35
-
Assembly scanning can be configured to scan an additional path for assemblies located outside of the default scanning path.
35
+
Assembly scanning can be configured to scan an additional path for assemblies outside the default scanning path.
36
36
37
37
snippet: AdditionalAssemblyScanningPath
38
38
@@ -42,7 +42,7 @@ Nested directories are **not** scanned for assemblies by default. Nested directo
42
42
43
43
snippet: ScanningNestedAssebliesEnabled
44
44
45
-
### Disable assembly files scanning
45
+
### Disable assembly file scanning
46
46
47
47
Scanning of assemblies deployed to the `bin` folder (and other configured scanning locations) can be disabled:
48
48
@@ -74,7 +74,7 @@ snippet: ScanningExcludeTypes
74
74
> [!NOTE]
75
75
> This configuration option is only available in NServiceBus 6.2 and above.
76
76
77
-
By default, exceptions occurred during assembly scanning will be re-thrown. Those exceptions can be ignored using the following:
77
+
By default, exceptions that occurred during assembly scanning will be re-thrown. Those exceptions can be ignored using the following:
0 commit comments