Skip to content

Commit 2079eb3

Browse files
Gourav DwivediGourav Dwivedi
authored andcommitted
modify readme file
1 parent 0e97b7d commit 2079eb3

File tree

2 files changed

+21
-13
lines changed

2 files changed

+21
-13
lines changed

PSScripts/RetryPattern/ReadMe.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
#How to use:
22

33
#Positive Test Case
4-
RetryCommand -Command {
5-
6-
Write-Host "Hello World!!!"
74

8-
} -MaxRetry 3
5+
RetryCommand -Command {
6+
7+
Write-Host "Hello World!!!"
8+
9+
} -MaxRetry 3
910

1011

1112

1213
#Negative Test Case
13-
RetryCommand -Command {
14-
15-
Write-Host "Exception is going to occur"
16-
throw 'logic throw exception'
17-
18-
} -MaxRetry 3 -RetryDelay 2 -ExceptionCallBack {
19-
param($exception)
20-
Write-ErrorLog "Here is your exception info:: $($exception.Message)"
21-
}
14+
15+
RetryCommand -Command {
16+
17+
Write-Host "Exception is going to occur"
18+
throw 'logic throw exception'
19+
20+
} -MaxRetry 3 -RetryDelay 2 -ExceptionCallBack {
21+
param($exception)
22+
Write-ErrorLog "Here is your exception info:: $($exception.Message)"
23+
}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# PowerShell-Helper-Scripts
22
PowerShell Helper Scripts
3+
4+
5+
## Table of Contents
6+
7+
- [Retry Pattern](gouravdwivedi6590/PowerShell-Helper-Scripts/blob/master/PSScripts/RetryPattern/ReadMe.md)
8+
-

0 commit comments

Comments
 (0)