Skip to content

Commit 4638ae2

Browse files
authored
Update README.md as the wrong paragraph
1 parent 2940fa8 commit 4638ae2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ builder.Services.AddOfX(cfg =>
5656

5757
Registers assemblies that contain the attributes, used by OfX for data mapping.
5858

59-
The Attribute should be inherited from `OfXAttribute` will be scanned!
59+
The Attribute should be inherited from `OfXAttribute` and will be scanned!
6060

6161
Parameters:
6262
`Assembly`: The assembly containing the (OfX) attributes.
@@ -72,22 +72,22 @@ If this function is not called. The default value `ItemsResponse<OfXDataResponse
7272
Parameters:
7373
`Type`: A marker type within the assembly that includes the handler implementations.
7474
Example:
75+
7576
```csharp
76-
cfg.AddReceivedPipelines(c =>
77-
{
78-
c.OfType(typeof(GenericPipeline<>)).OfType<OtherPipeline>();
79-
});
77+
cfg.AddHandlersFromNamespaceContaining<SomeHandlerAssemblyMarker>();
8078
```
8179

8280
Here, `AddHandlersFromNamespaceContaining` is a type within the assembly where your handler logic resides.
8381

84-
#### AddReceivedPipelines
8582
When you want to create some pipelines to handle the request of some attribute.
8683
Parameters:
8784
`Action<ReceivedPipeline>`: add the pipelines.
8885
Example:
8986
```csharp
90-
cfg.AddHandlersFromNamespaceContaining<SomeHandlerAssemblyMarker>();
87+
cfg.AddReceivedPipelines(c =>
88+
{
89+
c.OfType(typeof(GenericPipeline<>)).OfType<OtherPipeline>();
90+
});
9191
```
9292

9393
### 2. Integrate the Attribute into Your Model, Entity, or DTO

0 commit comments

Comments
 (0)