The ChannelAdam Dispatch Proxies Library
Overview
An open source, .NET Standard 1.3 library implementation of disposable and retry-enabled dispatch proxies.
Below are the main features of the library. See the linked code for details.
Please contact me if you have any questions.
Getting Started
NuGet Package Installation
To install the ChannelAdam.DispatchProxies NuGet package run the following command in the Package Manager Console:
1PM> Install-Package ChannelAdam.DispatchProxies
Usage
An example of the RetryEnabledObjectDisposableDispatchProxy
and a custom SimpleRetryPolicyFunction class:
1int retriesCount = 3;
2
3var myService = new MyService();
4
5var retryEnabledProxyOfMyService = RetryEnabledObjectDisposableDispatchProxy.Create<IMyService>(
6 myService,
7 new SimpleRetryPolicyFunction(this.retriesCount));
See the Behaviour Specifications for more examples, such as the TestObjectDispatchProxy.