/// <summary> /// Disposes the container. /// </summary> /// <param name="isDisposing">True if disposing managed resources, false if disposing unmanaged resources.</param> protected override void Dispose(bool isDisposing) { if (isDisposing) { if (this.provider != null) { this.provider.Dispose(); this.provider = null; } } base.Dispose(isDisposing); }
/// <summary> /// Initializes a new instance of the <see cref="AutofacMvxIocProvider"/> class. /// </summary> /// <param name="provider"> /// The autofac IoC provider from which dependencies should be resolved. /// </param> /// <exception cref="System.ArgumentNullException"> /// Thrown if <paramref name="provider"/>is <see langword="null"/>. /// </exception> public AutofacMvxIocProvider(ChildAutofacMvxIocProvider provider) { this.provider = provider ?? throw new ArgumentNullException(nameof(provider)); }