Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit #2

Merged
merged 13 commits into from
Apr 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

*.md text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug?
about: "... or something not behaving as expected?"

---

**Summary**:

<br/>
<br/>

**Expected behavior**:

<br/>
<br/>

**Actual behaviour**:

<br/>
<br/>

**Steps / Code to reproduce the problem**:

Best is a [complete example](https://stackoverflow.com/help/mcve) or failing unit test. It is _always_ useful to see:

+ **code of any policy declarations**,
+ **code of calls to `.Execute/AndCapture/Async(...)`**
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/how-to.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: How to
about: You have something specific to achieve and the existing documentation hasn't
covered how.

---

<!--
Be sure to check out the ReadMe (https://github.com/App-vNext/Polly/blob/master/README.md) and wiki (https://github.com/App-vNext/Polly/wiki) first!

https://github.com/App-vNext/Polly/wiki contains detailed pages on each policy type. Many questions are answered there about policy operation, how to change operation with configuration options, and how to attach behaviour via delegates. Other wiki pages cover [unit-testing](https://github.com/App-vNext/Polly/wiki/Unit-testing-with-Polly), [async usage](https://github.com/App-vNext/Polly/wiki/Asynchronous-action-execution), common patterns, and [using HttpClientFactory in ASPNET Core2.1 as the best way to integrate Polly into outbound `HttpClient` calls](https://github.com/App-vNext/Polly/wiki/Polly-and-HttpClientFactory).

-->


**Summary: What are you wanting to achieve?**

<br/>
<br/>

**What code or approach do you have so far?**

<br/>
<br/>

It is _always_ useful to see:

+ **code of any policy declarations**,
+ **code of the calls to `.Execute/AndCapture/Async(...)`**
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Request
about: Suggest a feature request or improvement

---

**Is your feature request related to a specific problem? Or an existing feature? Please describe.**

<br/><br/>

**Describe your proposed or preferred solution**:

<br/><br/>

**Describe any alternative options you've considered**:

<br/><br/>

**Any additional info?**
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Thank you for contributing to Polly.Contrib.WaitAndRetry! Open source is only as strong as its contributors. All non-trivial contributions get a public credit in the readme! -->

### The issue or feature being addressed

<!-- Please include the existing github issue number where relevant -->

### Details on the issue fix or feature implementation

### Confirm the following

- [ ] I have merged the latest changes from the dev vX.Y branch
- [ ] I have successfully run a local build
- [ ] I have included unit tests for the issue/feature
- [ ] I have targeted the PR against the latest dev vX.Y branch
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ TestResults
*.sln.docstates
.vs/
.vscode/
.idea/
grant-d marked this conversation as resolved.
Show resolved Hide resolved

# Build results
[Dd]ebug/
Expand Down Expand Up @@ -65,7 +64,7 @@ _ReSharper*
# GhostDoc
*.GhostDoc.xml

# Installshield output folder
# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
Expand Down Expand Up @@ -105,8 +104,6 @@ ClientBin
[Ss]tyle[Cc]op.*
~$*
*.dbmdl
.DS_Store
grant-d marked this conversation as resolved.
Show resolved Hide resolved

Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Polly.Contrib.WaitAndRetry changelog

## 0.1.0
- First version
1 change: 1 addition & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
We ask our contributors to abide by the [Code of Conduct of the .NET Foundation](https://www.dotnetfoundation.org/code-of-conduct).
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Polly.Contrib hosts contributions to the Polly project by the community.

See the main readme for how to contribute to Polly.Contrib.
1 change: 1 addition & 0 deletions GitVersionConfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
next-version: 0.1.0
26 changes: 26 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
New BSD License
=
Copyright (c) 2019, AppvNext and contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of App vNext nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Binary file added Polly-Logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Polly-Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Polly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
os: Visual Studio 2017

# Build script
build_script:
- ps: .\build.ps1

# Tests
test: off

artifacts:
- path: artifacts\nuget-package\*.nupkg

environment:
# Skip dotnet package caching on build servers
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
6 changes: 6 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@ECHO OFF
PUSHD %~dp0
PowerShell.exe -NoProfile -ExecutionPolicy Bypass -Command "& './build.ps1'"

IF %errorlevel% neq 0 PAUSE

Loading