JPolicy NuGet Library

Joever Monceda
Nov 25, 2020

JPolicy is a configurable error exception handler. It also includes definition of policies; just like to retry method execution and http request when failed,
default error message display during the exception, and method to execute to get the verbose exception to display or for logging purposes.

NuGet: https://www.nuget.org/packages/JPolicy/

Requirements:
1. NET Core 3.1
2. Visual Studio or VS Code

How to use:
1. Go to Tools and select Manage Nuget Packages and Search for JPolicy library
OR
2. Install-Package JPolicy -Version 1.0.1

Exception Retry Policy:

Using Exception Retry Policy

Exception output:

Error logs

Http Retry Policy:
Register service in Startup.cs and add the JPolicy.HttpRetryPolicy method in Add Policy Handler.

Startup.s
TestService.cs
Retry times request base on configuration.

Looking for a JOB? Signup @ jobbhy and be notified!
https://jobbhy.com

Want to post a JOB as employer? Contact and be one us!
https://www.jobbhy.com/#/contactus

Twitter: https://twitter.com/_EthnHunt07

LinkedIn: https://www.linkedin.com/feed/update/urn:li:activity:6556857396478734336

Facebook: https://www.facebook.com/groups/vuejsdevelopers/permalink/690896881322331/

Axios Refresh Token (A simple and straightforward request interceptor.)
https://www.npmjs.com/package/axios-jwtoken-refresher

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Joever Monceda
Joever Monceda

Written by Joever Monceda

Sr. Software Engineer @ Jobbhy Inc.

No responses yet

Write a response