Browse Source

Merge branch 'rel-4.1' of https://github.com/abpframework/abp into rel-4.1

pull/6696/head
erolarkat 6 years ago
parent
commit
a461e9d2e2
  1. 55
      docs/en/PlugIn-Modules.md
  2. 1979
      docs/zh-Hans/Domain-Driven-Design-Implementation-Guide.md
  3. 78
      docs/zh-Hans/docs-nav.json
  4. BIN
      docs/zh-Hans/images/abp-dynamic-form-result.png
  5. BIN
      docs/zh-Hans/images/abp-form-input-validation-error-french-name.png
  6. BIN
      docs/zh-Hans/images/abp-form-input-validation-error-french.png
  7. BIN
      docs/zh-Hans/images/abp-form-input-validation-error.png
  8. BIN
      docs/zh-Hans/images/ajax-error.png
  9. BIN
      docs/zh-Hans/images/aspnetcore-web-tests-in-solution.png
  10. BIN
      docs/zh-Hans/images/basic-theme-account-layout.png
  11. BIN
      docs/zh-Hans/images/basic-theme-application-layout-blazor.png
  12. BIN
      docs/zh-Hans/images/basic-theme-application-layout-parts.png
  13. BIN
      docs/zh-Hans/images/basic-theme-application-layout.png
  14. BIN
      docs/zh-Hans/images/blazor-message-confirm.png
  15. BIN
      docs/zh-Hans/images/blazor-message-error.png
  16. BIN
      docs/zh-Hans/images/blazor-message-success.png
  17. BIN
      docs/zh-Hans/images/blazor-notification-bell-component.png
  18. BIN
      docs/zh-Hans/images/blazor-notification-success.png
  19. BIN
      docs/zh-Hans/images/blazor-page-alert-example.png
  20. BIN
      docs/zh-Hans/images/bookstore-branding-blazor.png
  21. BIN
      docs/zh-Hans/images/bookstore-logo-blazor.png
  22. BIN
      docs/zh-Hans/images/branding-appname.png
  23. BIN
      docs/zh-Hans/images/branding-nobrand.png
  24. BIN
      docs/zh-Hans/images/breadcrumbs-example.png
  25. BIN
      docs/zh-Hans/images/datatables-custom-render-date.png
  26. BIN
      docs/zh-Hans/images/datatables-default-render-date.png
  27. BIN
      docs/zh-Hans/images/datatables-example.png
  28. BIN
      docs/zh-Hans/images/datatables-row-actions-confirmation.png
  29. BIN
      docs/zh-Hans/images/datatables-row-actions-icon.png
  30. BIN
      docs/zh-Hans/images/datatables-row-actions.png
  31. BIN
      docs/zh-Hans/images/db-options.png
  32. BIN
      docs/zh-Hans/images/ddd-microservice-simple.png
  33. BIN
      docs/zh-Hans/images/domain-driven-design-aggregate-keep-small.png
  34. BIN
      docs/zh-Hans/images/domain-driven-design-clean-architecture.png
  35. BIN
      docs/zh-Hans/images/domain-driven-design-domain-vs-application-logic.png
  36. BIN
      docs/zh-Hans/images/domain-driven-design-entity-primary-keys.png
  37. BIN
      docs/zh-Hans/images/domain-driven-design-example-domain-schema.png
  38. BIN
      docs/zh-Hans/images/domain-driven-design-issue-aggregate-diagram.png
  39. BIN
      docs/zh-Hans/images/domain-driven-design-layers.png
  40. BIN
      docs/zh-Hans/images/domain-driven-design-multiple-applications.png
  41. BIN
      docs/zh-Hans/images/domain-driven-design-project-relations.png
  42. BIN
      docs/zh-Hans/images/domain-driven-design-reference-by-id-sample.png
  43. BIN
      docs/zh-Hans/images/domain-driven-design-vs-solution.png
  44. BIN
      docs/zh-Hans/images/domain-driven-design-web-request-flow.png
  45. BIN
      docs/zh-Hans/images/example-global-styles.png
  46. BIN
      docs/zh-Hans/images/features-action.png
  47. BIN
      docs/zh-Hans/images/features-modal.png
  48. BIN
      docs/zh-Hans/images/issue-first-test.png
  49. BIN
      docs/zh-Hans/images/issue-list.png
  50. BIN
      docs/zh-Hans/images/js-message-confirm.png
  51. BIN
      docs/zh-Hans/images/js-message-error.png
  52. BIN
      docs/zh-Hans/images/js-message-success.png
  53. BIN
      docs/zh-Hans/images/js-notify-success.png
  54. BIN
      docs/zh-Hans/images/lepton-theme-account-layout.png
  55. BIN
      docs/zh-Hans/images/lepton-theme-application-layout.png
  56. BIN
      docs/zh-Hans/images/lepton-theme-blazor-layout.png
  57. BIN
      docs/zh-Hans/images/modal-example-product-create.png
  58. BIN
      docs/zh-Hans/images/modal-example-product-info.png
  59. BIN
      docs/zh-Hans/images/modal-manager-cancel-warning.png
  60. BIN
      docs/zh-Hans/images/modal-manager-example-modal.png
  61. BIN
      docs/zh-Hans/images/modal-manager-validation.png
  62. BIN
      docs/zh-Hans/images/modal-page-on-rider.png
  63. BIN
      docs/zh-Hans/images/nav-main-menu-administration.png
  64. BIN
      docs/zh-Hans/images/nav-main-menu.png
  65. BIN
      docs/zh-Hans/images/page-alert-account-layout.png
  66. BIN
      docs/zh-Hans/images/page-alert-example.png
  67. BIN
      docs/zh-Hans/images/product-create-modal-page-on-rider.png
  68. BIN
      docs/zh-Hans/images/react-native-introduction.gif
  69. BIN
      docs/zh-Hans/images/solution-test-projects.png
  70. BIN
      docs/zh-Hans/images/ui-busy.png
  71. BIN
      docs/zh-Hans/images/ui-options.png
  72. BIN
      docs/zh-Hans/images/user-menu.png
  73. BIN
      docs/zh-Hans/images/vs-run-tests-in-parallel.png
  74. BIN
      docs/zh-Hans/images/vs-startup-template-tests.png
  75. BIN
      docs/zh-Hans/images/vs-test-explorer.png

55
docs/en/PlugIn-Modules.md

@ -1,3 +1,56 @@
# Plug-In Modules
TODO
It is possible to load [modules](Module-Development-Basics.md) as plug-ins. That means you may not reference to a module's assembly in your solution, but you can load that module in the application startup just like any other module.
## Basic Usage
`IServiceCollection.AddApplication<T>()` extension method can get options to configure the plug-in sources.
**Example: Load plugins from a folder**
````csharp
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity.PlugIns;
namespace MyPlugInDemo.Web
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddApplication<MyPlugInDemoWebModule>(options =>
{
options.PlugInSources.AddFolder(@"D:\Temp\MyPlugIns");
});
}
public void Configure(IApplicationBuilder app)
{
app.InitializeApplication();
}
}
}
````
* This is the `Startup` class of a typical ASP.NET Core application.
* `PlugInSources.AddFolder` gets a folder path and to load assemblies (typically `dll`s) in that folder.
That's all. ABP will discover the modules in the given folder, configure and initialize them just like regular modules.
### Plug-In Sources
`options.PlugInSources` is actually a list of `IPlugInSource` implementations and `AddFolder` is just a shortcut for the following expression:
````csharp
options.PlugInSources.Add(new FolderPlugInSource(@"D:\Temp\MyPlugIns"));
````
> `AddFolder()` only looks for the assembly file in the given folder, but not looks for the sub-folders. You can pass `SearchOption.AllDirectories` as a second parameter to explore plug-ins also from the sub-folders, recursively.
There are two more built-in Plug-In Source implementations:
* `PlugInSources.AddFiles()` gets a list of assembly (typically `dll`) files. This is a shortcut of using `FilePlugInSource` class.
* `PlugInSources.AddTypes()` gets a list of module class types. If you use this, you need to load the assemblies of the modules yourself, but it provides flexibility when needed. This is a shortcut of using `TypePlugInSource` class.
If you need, you can create your own `IPlugInSource` implementation and add to the `options.PlugInSources` just like the others.

1979
docs/zh-Hans/Domain-Driven-Design-Implementation-Guide.md

File diff suppressed because it is too large

78
docs/zh-Hans/docs-nav.json

@ -338,53 +338,57 @@
"path": "Best-Practices/Index.md"
}
]
}
]
},
{
"text": "领域驱动设计",
"items": [
{
"text": "概述",
"path": "Domain-Driven-Design.md"
},
{
"text": "领域",
"text": "领域驱动设计",
"items": [
{
"text": "实体&聚合根",
"path": "Entities.md"
},
{
"text": "值对象"
},
{
"text": "仓储",
"path": "Repositories.md"
},
{
"text": "领域服务"
"text": "概述",
"path": "Domain-Driven-Design.md"
},
{
"text": "规约",
"path": "Specifications.md"
}
]
},
{
"text": "应用服务层",
"items": [
{
"text": "应用服务",
"path": "Application-Services.md"
"text": "领域层",
"items": [
{
"text": "实体&聚合根",
"path": "Entities.md"
},
{
"text": "值对象"
},
{
"text": "仓储",
"path": "Repositories.md"
},
{
"text": "领域服务"
},
{
"text": "规约",
"path": "Specifications.md"
}
]
},
{
"text": "数据传输对象(DTO)",
"path": "Data-Transfer-Objects.md"
"text": "应用服务层",
"items": [
{
"text": "应用服务",
"path": "Application-Services.md"
},
{
"text": "数据传输对象(DTO)",
"path": "Data-Transfer-Objects.md"
},
{
"text": "工作单元",
"path": "Unit-Of-Work.md"
}
]
},
{
"text": "工作单元",
"path": "Unit-Of-Work.md"
"text": "指南: 实现DDD",
"path": "Domain-Driven-Design-Implementation-Guide.md"
}
]
},

BIN
docs/zh-Hans/images/abp-dynamic-form-result.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
docs/zh-Hans/images/abp-form-input-validation-error-french-name.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
docs/zh-Hans/images/abp-form-input-validation-error-french.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
docs/zh-Hans/images/abp-form-input-validation-error.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
docs/zh-Hans/images/ajax-error.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
docs/zh-Hans/images/aspnetcore-web-tests-in-solution.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
docs/zh-Hans/images/basic-theme-account-layout.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
docs/zh-Hans/images/basic-theme-application-layout-blazor.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
docs/zh-Hans/images/basic-theme-application-layout-parts.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
docs/zh-Hans/images/basic-theme-application-layout.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
docs/zh-Hans/images/blazor-message-confirm.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
docs/zh-Hans/images/blazor-message-error.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
docs/zh-Hans/images/blazor-message-success.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
docs/zh-Hans/images/blazor-notification-bell-component.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
docs/zh-Hans/images/blazor-notification-success.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
docs/zh-Hans/images/blazor-page-alert-example.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
docs/zh-Hans/images/bookstore-branding-blazor.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
docs/zh-Hans/images/bookstore-logo-blazor.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
docs/zh-Hans/images/branding-appname.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
docs/zh-Hans/images/branding-nobrand.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
docs/zh-Hans/images/breadcrumbs-example.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
docs/zh-Hans/images/datatables-custom-render-date.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
docs/zh-Hans/images/datatables-default-render-date.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
docs/zh-Hans/images/datatables-example.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
docs/zh-Hans/images/datatables-row-actions-confirmation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
docs/zh-Hans/images/datatables-row-actions-icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
docs/zh-Hans/images/datatables-row-actions.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
docs/zh-Hans/images/db-options.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
docs/zh-Hans/images/ddd-microservice-simple.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
docs/zh-Hans/images/domain-driven-design-aggregate-keep-small.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB

BIN
docs/zh-Hans/images/domain-driven-design-clean-architecture.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
docs/zh-Hans/images/domain-driven-design-domain-vs-application-logic.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
docs/zh-Hans/images/domain-driven-design-entity-primary-keys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

BIN
docs/zh-Hans/images/domain-driven-design-example-domain-schema.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
docs/zh-Hans/images/domain-driven-design-issue-aggregate-diagram.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

BIN
docs/zh-Hans/images/domain-driven-design-layers.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
docs/zh-Hans/images/domain-driven-design-multiple-applications.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
docs/zh-Hans/images/domain-driven-design-project-relations.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
docs/zh-Hans/images/domain-driven-design-reference-by-id-sample.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

BIN
docs/zh-Hans/images/domain-driven-design-vs-solution.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
docs/zh-Hans/images/domain-driven-design-web-request-flow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
docs/zh-Hans/images/example-global-styles.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
docs/zh-Hans/images/features-action.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
docs/zh-Hans/images/features-modal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
docs/zh-Hans/images/issue-first-test.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
docs/zh-Hans/images/issue-list.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
docs/zh-Hans/images/js-message-confirm.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
docs/zh-Hans/images/js-message-error.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
docs/zh-Hans/images/js-message-success.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
docs/zh-Hans/images/js-notify-success.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
docs/zh-Hans/images/lepton-theme-account-layout.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
docs/zh-Hans/images/lepton-theme-application-layout.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

BIN
docs/zh-Hans/images/lepton-theme-blazor-layout.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

BIN
docs/zh-Hans/images/modal-example-product-create.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
docs/zh-Hans/images/modal-example-product-info.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

BIN
docs/zh-Hans/images/modal-manager-cancel-warning.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
docs/zh-Hans/images/modal-manager-example-modal.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
docs/zh-Hans/images/modal-manager-validation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
docs/zh-Hans/images/modal-page-on-rider.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
docs/zh-Hans/images/nav-main-menu-administration.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
docs/zh-Hans/images/nav-main-menu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
docs/zh-Hans/images/page-alert-account-layout.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
docs/zh-Hans/images/page-alert-example.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
docs/zh-Hans/images/product-create-modal-page-on-rider.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
docs/zh-Hans/images/react-native-introduction.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 KiB

BIN
docs/zh-Hans/images/solution-test-projects.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
docs/zh-Hans/images/ui-busy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

BIN
docs/zh-Hans/images/ui-options.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
docs/zh-Hans/images/user-menu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
docs/zh-Hans/images/vs-run-tests-in-parallel.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
docs/zh-Hans/images/vs-startup-template-tests.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
docs/zh-Hans/images/vs-test-explorer.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Loading…
Cancel
Save