File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ builder.Services.AddOfX(cfg =>
56
56
57
57
Registers assemblies that contain the attributes, used by OfX for data mapping.
58
58
59
- The Attribute should be inherited from ` OfXAttribute ` will be scanned!
59
+ The Attribute should be inherited from ` OfXAttribute ` and will be scanned!
60
60
61
61
Parameters:
62
62
` Assembly ` : The assembly containing the (OfX) attributes.
@@ -72,22 +72,22 @@ If this function is not called. The default value `ItemsResponse<OfXDataResponse
72
72
Parameters:
73
73
` Type ` : A marker type within the assembly that includes the handler implementations.
74
74
Example:
75
+
75
76
``` csharp
76
- cfg .AddReceivedPipelines (c =>
77
- {
78
- c .OfType (typeof (GenericPipeline <>)).OfType <OtherPipeline >();
79
- });
77
+ cfg .AddHandlersFromNamespaceContaining <SomeHandlerAssemblyMarker >();
80
78
```
81
79
82
80
Here, ` AddHandlersFromNamespaceContaining ` is a type within the assembly where your handler logic resides.
83
81
84
- #### AddReceivedPipelines
85
82
When you want to create some pipelines to handle the request of some attribute.
86
83
Parameters:
87
84
` Action<ReceivedPipeline> ` : add the pipelines.
88
85
Example:
89
86
``` csharp
90
- cfg .AddHandlersFromNamespaceContaining <SomeHandlerAssemblyMarker >();
87
+ cfg .AddReceivedPipelines (c =>
88
+ {
89
+ c .OfType (typeof (GenericPipeline <>)).OfType <OtherPipeline >();
90
+ });
91
91
```
92
92
93
93
### 2. Integrate the Attribute into Your Model, Entity, or DTO
You can’t perform that action at this time.
0 commit comments