Skip to content

pimbrouwers/CircuitBreaker.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CircuitBreaker.NET

Implementation of Circuit Breaker Pattern for .NET with Memory & File System Caching - Access volatile resources in a thread safe manner.

Usage

CircuitBreaker breaker = new CircuitBreaker("CircuitKey", "CacheKey");

var myResults = breaker.Execute(() =>
{
    return "hello world!";
});

Constructor Options

string circuitId,
string cacheKey = null,
CacheDependency cacheDependency = null,
TimeSpan? cacheDuration = null,
TimeSpan? cacheSlidingExpiration = null,
CacheItemPriority cacheItemPriority = CacheItemPriority.Normal,
string workingDirectory = null,
int failureThreshold = 3,
TimeSpan? openTimeout = null

About

Implementation of Circuit Breaker Pattern for .NET with Memory & File System Caching - Access volatile resources in a thread safe manner.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published