Skip to content

Releases: servicetitan/lazy-proxy-autofac

2.2.0

29 Jun 19:27
63b5796
Compare
Choose a tag to compare
  • Update Autofac to v6.4.0

2.1.0

28 Oct 17:29
Compare
Choose a tag to compare
  • Update Autofac to v6.3.0

2.0.2

29 Jun 11:47
Compare
Choose a tag to compare
  • Update LazyProxy.

2.0.1

28 Jun 07:07
Compare
Choose a tag to compare
  • Update LazyProxy to the 1.0.1 version.

2.0.0

06 Oct 21:35
Compare
Choose a tag to compare

Autofac has been updated to version 6.0.0

Breaking changes

We have used a new Autofac 6.0.0 API, which allows registering an open generic associated with a delegate/lambda expression.

The signatures of the new Autofac's method and the method that registers factories for non-generic types are different. Therefore, we also had to distinguish between signatures for open generic types and non-open generic types.

Before

// Registering a mapping of a non-open generic interface
containerBuilder.RegisterLazy(typeof(IFoo), typeof(Foo));

// Registering a mapping of an open generic interface
containerBuilder.RegisterLazy(typeof(IFoo<>), typeof(Foo<>));

After

// Registering a mapping of a non-open generic interface
containerBuilder.RegisterLazy(typeof(IFoo), typeof(Foo));

// Registering a mapping of an open generic interface
containerBuilder.RegisterGenericLazy(typeof(IFoo<>), typeof(Foo<>));

We also added a check at runtime for the type. If the wrong type is used, an ArgumentException will be thrown, just like Autofac does.

// ArgumentException when registering a mapping of a non-open generic interface using the wrong method
containerBuilder.RegisterGenericLazy(typeof(IFoo), typeof(Foo));

// ArgumentException when registering a mapping of an open generic interface using the wrong method
containerBuilder.RegisterLazy(typeof(IFoo<>), typeof(Foo<>));

1.1.0

06 Oct 21:20
Compare
Choose a tag to compare

Autofac has been updated to version 5.2.0

1.0.0

01 Oct 22:46
Compare
Choose a tag to compare

LazyProxy has been updated to version 1.0.0

0.1.3

29 Nov 10:40
Compare
Choose a tag to compare
0.1.3 Pre-release
Pre-release

RegisterGenericFactory is implemented without adding a public source.

0.1.2

14 Nov 07:28
Compare
Choose a tag to compare
0.1.2 Pre-release
Pre-release
  • Non-lazy registration mutator support has been added;
  • RegisterLazy overloads have been refactored;
  • OpenGenericFactoryRegistrationSource is added only once and only for open generic types.

0.1.1

14 Nov 05:17
Compare
Choose a tag to compare
0.1.1 Pre-release
Pre-release

The first version.

The following is supported:

  • Registration of types by interfaces;
  • Resolving by child containers.
  • Registration by open generic interfaces.