/// <summary>
        /// Registers an <see cref="IConsumeObserver"/> which resolves the actual observer from the container lifetime scope
        /// </summary>
        /// <param name="connector"></param>
        /// <param name="lifetimeScope">The default lifetime scope</param>
        /// <returns></returns>
        public static ConnectHandle ConnectAutofacConsumeObserver(this IConsumeObserverConnector connector, ILifetimeScope lifetimeScope)
        {
            var observer = new AutofacConsumeObserver(lifetimeScope);

            return(connector.ConnectConsumeObserver(observer));
        }
        /// <summary>
        /// Registers an <see cref="IConsumeObserver"/> which resolves the actual observer from the container lifetime scope
        /// </summary>
        /// <param name="connector"></param>
        /// <returns></returns>
        public static ConnectHandle ConnectAutofacConsumeObserver(this IConsumeObserverConnector connector)
        {
            var observer = new AutofacConsumeObserver();

            return(connector.ConnectConsumeObserver(observer));
        }