Skip to content

Releases: servicetitan/lazy-proxy

1.0.2

29 Jun 11:44
Compare
Choose a tag to compare
  • Fix proxies with multiple generic arguments.

1.0.1

28 Jun 06:26
Compare
Choose a tag to compare
  • Fix the bug when using multiple interface constraints.

1.0.0

01 Oct 00:49
Compare
Choose a tag to compare
  • 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

16 May 04:21
Compare
Choose a tag to compare
0.1.5 Pre-release
Pre-release
  • 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

29 Nov 12:50
Compare
Choose a tag to compare
0.1.4 Pre-release
Pre-release

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 takes Func<T> valueFactory.
  • BuildLazyProxyType methods are renamed to GetType;
  • 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>> to Func<T>
  • Class constraint for T is added.

0.1.3

27 Nov 11:31
Compare
Choose a tag to compare
0.1.3 Pre-release
Pre-release

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

19 Nov 12:28
Compare
Choose a tag to compare
0.1.2 Pre-release
Pre-release
  • Added BuildLazyProxyType non-generic overload;
  • NotSupportedException is thrown for non-interface types.

0.1.1

27 Jul 09:58
Compare
Choose a tag to compare
0.1.1 Pre-release
Pre-release

Add XML documentation for NuGet.

0.1.0

25 Jul 13:59
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

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.