Releases: servicetitan/lazy-proxy
Releases · servicetitan/lazy-proxy
1.0.2
1.0.1
- Fix the bug when using multiple interface constraints.
1.0.0
- The
0.1.5
version has worked for more than one year for our company, proving its efficiency and reliability in a production environment even under extreme loads. Therefore, we release the first major version with sufficient confidence; - Current changes are only minor performance improvements.
0.1.5
- Fix .NET Core 3.0 Preview4 incompatibility;
- Disposing of proxy with not created object don't cause creating and disposing this object.
0.1.4
There are breaking changes in this version
- Lazy proxy had a constructor that takes
Lazy<IService<T>> lazy
argument. For now constructor is empty but method Initialize is added that takesFunc<T> valueFactory
. BuildLazyProxyType
methods are renamed toGetType
;- CreateLazyProxyInstance methods are renamed to
CreateInstance
.
Other changes
- Generic types will cause generating of open-generic proxies only;
- Non-generic overload of
CreateInstance
is added; - Method Initialize is used instead of ctor to improve performance
- Argument of proxy is changed from
Lazy<IService<T>>
toFunc<T>
- Class constraint for
T
is added.
0.1.3
The following is added:
- Supporting generic interfaces with not-specified type parameters like
IService<T1, T2>
; - Supporting type parameter constraints of classes and methods.
0.1.2
- Added BuildLazyProxyType non-generic overload;
- NotSupportedException is thrown for non-interface types.
0.1.1
Add XML documentation for NuGet.
0.1.0
The first version.
The following is supported:
- Void/Result methods;
- Async methods;
- Generic methods;
- Generic interfaces;
- Ref/Out parameters;
- Parameters with default values;
- Parent interface members;
- Indexers;
- Properties (getters and setters);
- Thread-safe proxy generation.