Skip to content

Commit 54329e9

Browse files
committed
Remove paragraph wrapping newlines in readme added by Visual Studio Code.
1 parent 4ad7b23 commit 54329e9

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

README.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# Light Chain
22

3-
Lightweight library for implementing simplified version of
4-
[chain of responsibility](https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern)
5-
in C#.
3+
Lightweight library for implementing simplified version of [chain of responsibility](https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern) in C#.
64

7-
The inspiration for this library came from figuring out a way to break up
8-
`if/else` chains into loosely coupled, separate units to improve maintainability
9-
through separation of concerns.
5+
The inspiration for this library came from figuring out a way to break up `if/else` chains into loosely coupled, separate units to improve maintainability through separation of concerns.
106

117
Example of `if/else` chain:
128

@@ -37,10 +33,7 @@ public class Main
3733
}
3834
```
3935

40-
As we can see from the example, all the blocks of conditions and processing are
41-
stuck together in the `if/else` construct within the same class. The `if/else`
42-
construct itself adds a bit of noise. It is difficult to view and change high
43-
level concerns only, such as order of each case.
36+
As we can see from the example, all the blocks of conditions and processing are stuck together in the `if/else` construct within the same class. The `if/else` construct itself adds a bit of noise. It is difficult to view and change high level concerns only, such as order of each case.
4437

4538
# Getting Started
4639

@@ -155,17 +148,13 @@ public class Main
155148
}
156149
```
157150

158-
Be aware that the order of the processors in the list matters: the first
159-
processor whose condition returns `true` will handle returning the output.
151+
Be aware that the order of the processors in the list matters: the first processor whose condition returns `true` will handle returning the output.
160152

161153
### Dependency Injection
162154

163-
Using a dependency injection framework, the processor list and chain instance
164-
can be defined separately from the main class via the dependency injection
165-
framework.
155+
Using a dependency injection framework, the processor list and chain instance can be defined separately from the main class via the dependency injection framework.
166156

167-
Using Microsoft.Extensions.DependencyInjection the `Main` class can be
168-
refactored:
157+
Using Microsoft.Extensions.DependencyInjection the `Main` class can be refactored:
169158

170159
```c#
171160
using LightChain;
@@ -217,8 +206,7 @@ internal static class ServiceRegistrations
217206
}
218207
```
219208

220-
The end result is improved separation of concerns such that the main class no
221-
longer needs to change due to any modifications related to processors:
209+
The end result is improved separation of concerns such that the main class no longer needs to change due to any modifications related to processors:
222210

223211
- Adding or removing processors from the chain.
224212
- Reordering processors in the chain.

0 commit comments

Comments
 (0)