You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,15 @@ In the following flow on trying to implement try execution (`TryToExecute`, `Try
11
11
- code for the catch block `catch { }`;
12
12
- code for finally block `finally { }`.
13
13
14
+
Or can be used `TryBuilder` for fluent invoke.
15
+
```csharp
16
+
TryBuilder.Do(async () =>awaitFooAsync())
17
+
.Catch<IOException>(ex=>...)
18
+
.Finally(() =>...)
19
+
.ExecuteAsync();
20
+
```
21
+
22
+
14
23
To understand more efficiently how you can use available functionalities please consult the [using documentation/file](docs/usage.md).
15
24
16
25
**In case you wish to use it in your project, u can install the package from <ahref="https://www.nuget.org/packages/TryToExecute"target="_blank">nuget.org</a>** or specify what version you want:
0 commit comments