public AutofacActivateInstanceModule(IContainerInstanceActivator instanceActivator) { if (instanceActivator == null) { throw new ArgumentNullException(nameof(instanceActivator)); } _instanceActivator = instanceActivator; }
public void OnActivateInstance(IContainerInstanceActivator instanceActivator) { _builder.RegisterModule(new AutofacActivateInstanceModule(instanceActivator)); }