/// <summary> /// Register a component. /// </summary> /// <param name="registration">The component registration.</param> public void Register(IComponentRegistration registration) { if (registration == null) { throw new ArgumentNullException(nameof(registration)); } _registeredServicesTracker.AddRegistration(registration, false); }
/// <summary> /// Register a component. /// </summary> /// <param name="registration">The component registration.</param> public void Register(IComponentRegistration registration) { if (registration == null) { throw new ArgumentNullException(nameof(registration)); } _registeredServicesTracker.AddRegistration(registration, false); GetRegistered()?.Invoke(this, new ComponentRegisteredEventArgs(this, registration)); }