Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

v2.2.0

Compare
Choose a tag to compare
@osoykan osoykan released this 10 Mar 10:01
· 83 commits to master since this release

Enhancement

  • OnDisposing event added to IServiceRegistration interface
 _rootResolver = IocBuilder.New
                           .UseAutofacContainerBuilder()
                           .RegisterServices(r =>
                           {
                               r.Register<ISomeManager, SomeManager>();
                               r.OnDisposing += (sender, args) =>
                               {
                                   _manager = args.Context.Resolver.Resolve<ISomeManager>();
                                   _manager.Shutdown();
                               };
                           }).CreateResolver();

 _rootResolver.Dispose();