Example #1
0
        /// <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);
        }
Example #2
0
        /// <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));
        }