Browse Source

Added notice

pull/17026/head
Halil İbrahim Kalkan 3 years ago
parent
commit
7b2d369c4a
  1. 4
      docs/en/Module-Development-Basics.md

4
docs/en/Module-Development-Basics.md

@ -170,7 +170,7 @@ Typically, every assembly contains a separate module class definition. Then modu
````csharp
[DependsOn(...)] // Your module dependencies as you normally do
[AdditionalAssembly(typeof(BlogService))]
[AdditionalAssembly(typeof(BlogService))] // A type in the target assembly
public class BlogModule
{
//...
@ -179,6 +179,8 @@ public class BlogModule
In this example, we assume that the `BlogService` class is inside one assembly (`csproj`) and the `BlogModule` class is inside another assembly (`csproj`). With the `AdditionalAssembly` definition, ABP will load the assembly containing the `BlogService` class as a part of the blog module.
Notice that `BlogService` is only an arbitrary selected type in the target assembly. It is just used to indicate the related assembly. You could use any type in the assembly.
> WARNING: If you need to use the `AdditionalAssembly`, be sure that you don't design your system in a wrong way. With this example above, `BlogService` class' assembly should normally have its own module class and the `BlogModule` should depend on it using the `DependsOn` attribute. Do not use the `AdditionalAssembly` attribute when you can use the `DependsOn` attribute.
## Framework Modules vs Application Modules

Loading…
Cancel
Save