IMPORTANT: DEPRECATION NOTICE
This full .NET Framework library has been deprecated.
The functionality has been refactored out into the following ChannelAdam .NET Standard libraries.
- ChannelAdam Commands Library
- ChannelAdam Dispatch Proxies Library
- ChannelAdam Disposing Library
- ChannelAdam Logging Library
- ChannelAdam Primitive Extensions Library
- ChannelAdam Reflection Library
- ChannelAdam Transient Fault Handling Library
- ChannelAdam Weak Events Library
- ChannelAdam XML Library
Overview
The open source, full .NET Framework, ChannelAdam Core Library provides some helpful .NET functionality - such as the implementation of various design patterns. This functionality also just happens to be used in the other ChannelAdam code libraries…
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.Core NuGet package run the following command in the Package Manager Console:
1PM> Install-Package ChannelAdam.Core
Features
Disposable Pattern
Have you ever thought that the disposable pattern was complicated to implement or understand? Inherit this and it’s easy!
Command Pattern
Have you ever needed to implement a Command Pattern?
Command Action
A Command Action has an Execute
method with a void
return parameter.
Command Function
A Command Function has an Execute
method with a specified return parameter.
Reversible Commands
Need to execute some commands and be able to undo them? This Reversible Command implementation is for you!
Use the Reversible Command Manager to manage the stack of commands that can be reversed.
- Reversible Command Action interface
- Reversible Command Action base class
- Reversible Command Function interface
- Reversible Command Function base class
Set Property - Command Implementation
A command implementation for setting a property on an object.
Weak Event Pattern
Need a Weak Event in specific circumstances to prevent memory leaks in your event listeners?
Simple Logger
A very simple interface for logging or writing out to the console.
Embedded Resources
Easily retreive embedded resources from their manifest resource stream.
Real Proxies
Getting low-level with a Real Proxy? These are disposable and have retry capability!
Retry Policies (for Transient Fault Handling)
Some handy interfaces to describe retry policies.
- Retry Policy Action interface
- Async Retry Policy Action interface
- Retry Policy Function interface
- Async Retry Policy Function interface
- Sample Retry Policy Adapter for the Microsoft Transient Fault Handling library
XML
XML validation, serialisation and type conversion made easy.
comments powered by Disqus