Example #1
0
        public InterceptorReference(Type serviceType)
        {
            if (serviceType == null)
            {
                throw new ArgumentNullException("'serviceType' cannot be null");
            }

            this.refType     = InterceptorReferenceType.Interface;
            this.serviceType = serviceType;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InterceptorReference"/> class.
        /// </summary>
        /// <param name="serviceType">Type of the service.</param>
        public InterceptorReference(Type serviceType)
        {
            if (serviceType == null)
            {
                throw new ArgumentNullException("'serviceType' cannot be null");
            }

            refType = InterceptorReferenceType.Interface;
            this.serviceType = serviceType;
        }
Example #3
0
        public InterceptorReference(String componentKey)
        {
            if (componentKey == null)
            {
                throw new ArgumentNullException("componentKey cannot be null");
            }

            this.refType      = InterceptorReferenceType.Key;
            this.componentKey = componentKey;
        }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InterceptorReference"/> class.
        /// </summary>
        /// <param name="componentKey">The component key.</param>
        public InterceptorReference(String componentKey)
        {
            if (componentKey == null)
            {
                throw new ArgumentNullException("componentKey cannot be null");
            }

            refType = InterceptorReferenceType.Key;
            this.componentKey = componentKey;
        }